Saltar al contenido principal

Payment

payment: Nullable<Payment>

Information about the payment method, including status and selected option. This property may be null depending on the page it is accessed from.

PropertyTypeAlways presentDescription
statusPaymentStatus or nullNoCurrent status of the payment.
selectedSelectedPayment or nullNoSelected payment method details.

PaymentStatus: One of "pending", "paid", "voided", "open", "abandoned", "authorized", "refunded", "recovered", "partially_paid".

SelectedPayment (payment.selected):

PropertyTypeAlways presentDescription
idstring or nullNoUnique identifier for the payment method.
app_idnumber or nullNoApplication ID associated with the payment provider.
payment_provider_idstring or nullNoPayment provider identifier.
method_namestring or nullNoName of the payment method.
typestring or nullNoType of payment.
method_typestring or nullNoMethod type.
bypass_gatewayboolean or nullNoWhether to bypass the payment gateway.
render_gateway_nameboolean or nullNoWhether to render the gateway name.
methodstring or nullNoPayment method identifier.
templatestring or nullNoTemplate for the payment method.
namestring or nullNoDisplay name.
categorystring or nullNoPayment category.
billing_addressboolean or nullNoWhether billing address is required.

For the exact TypeScript definitions, use the types from @tiendanube/nube-sdk-types (e.g. Payment, PaymentStatus, SelectedPayment).