PaymentSession
A Payment Session is created when a Customer initilizes the checkout flow, and can be used to hold the state of a payment flow. Each Payment Session is controlled by a Payment Provider, which is responsible for the communication with external payment services. Authorized Payment Sessions will eventually get promoted to Payments to indicate that they are authorized for payment processing such as capture or refund. Payment sessions can also be used as part of payment collections.
Constructors
constructor
**new PaymentSession**()
A Payment Session is created when a Customer initilizes the checkout flow, and can be used to hold the state of a payment flow. Each Payment Session is controlled by a Payment Provider, which is responsible for the communication with external payment services. Authorized Payment Sessions will eventually get promoted to Payments to indicate that they are authorized for payment processing such as capture or refund. Payment sessions can also be used as part of payment collections.
Properties
amountnumberRequiredcart_idnull | stringRequiredcreated_atDateRequireddataRecord<string, unknown>RequiredidstringRequiredidempotency_keystringRequiredis_initiatedbooleanRequiredDefault: false
is_selectednull | booleanRequiredpayment_authorized_atDateRequiredprovider_idstringRequiredstatusstringRequiredpending, and will eventually become authorized. Payment Sessions may have the status of requires\_more to indicate that further actions are to be completed by the Customer.updated_atDateRequiredMethods
beforeInsert
Private **beforeInsert**(): void
Returns
void
voidvoid