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
amount
numberRequiredcart_id
null | stringRequiredcreated_at
DateRequireddata
Record<string, unknown>Requiredid
stringRequiredidempotency_key
stringRequiredis_initiated
booleanRequiredDefault: false
is_selected
null | booleanRequiredpayment_authorized_at
DateRequiredprovider_id
stringRequiredstatus
stringRequiredpending
, 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_at
DateRequiredMethods
beforeInsert
Private **beforeInsert**(): void
Returns
void
void
void