Skip to main content
Skip to main content

PaymentProcessorContext

A payment's context.

emailstringRequired
The customer's email.
currency_codestringRequired
The selected currency code, typically associated with the customer's cart.
amountnumberRequired
The payment's amount.
resource_idstringRequired
The ID of the resource the payment is associated with. For example, the cart's ID.
contextRecord<string, unknown>Required
The cart's context.
paymentSessionDataRecord<string, unknown>Required
If the payment session hasn't been created or initiated yet, it'll be an empty object. If the payment session exists, it'll be the value of the payment session's data field.
billing_addressnull | Address
The payment's billing address.
customerCustomer
The customer associated with this payment.
Was this section helpful?