EventData
- objectrequired
Object containing the API resource relevant to the event. For example, a
checkout_session.completedevent has a Checkout Session object in this field.Checkout session for processing payments
- idType: stringrequired
Unique identifier for the checkout session
- livemodeType: booleanrequired
Has the value
trueif the object exists in live mode or the valuefalseif the object exists in test mode. - modeType: stringenumrequired
The mode of the Checkout Session.
values- payment
Standard one-time payment.
- setup
Set up a payment method for future use.
- subscription
Coming soon. Not available yet.
- paymentType: stringenum
_status requiredThe payment status of the Checkout Session, one of
paid,unpaid, orno_payment_required.values- no
_payment _required - processing
- paid
- unpaid
- statusType: stringenumrequired
The status of the Checkout Session.
values- complete
- expired
- open
- urlType: stringFormat: urirequired
URL where the customer can complete the payment.
- afterType: object
_completion After completion behavior for the Checkout Session.
- amountType: integerFormat: int64
_total Total of all items after discounts and taxes are applied.
- billingType: stringenum
_address _collection Specify whether Checkout should collect the customer's billing address. Defaults to
auto.values- auto
Checkout will only collect the billing address when necessary.
- required
Checkout will always collect the customer's billing address.
- cancelType: string | null
_url URL customers can return to if they cancel payment.
- clientType: string | null
_customer _id An identifier of the customer in the merchant's system.
- clientType: string | null
_reference _id A free-form reference from the merchant's system.
- currencyType: object
Three-letter ISO currency code
- customernullable
Customer associated with the Checkout Session, if one exists.
- Type: string · Customer IDmax length:100
Customer associated with the Checkout Session, if one exists.
- customerType: string | nullenum
_creation Customer creation behavior used during Session confirmation.
values- always
- if
_required
- customerType: string | null
_email Email address associated with the Checkout Session.
- descriptionType: string | null
A free-form reference that describes the checkout.
- expiresType: string | nullFormat: date-time
_at Expiry time for the checkout.
- lineType: array object[] · LineItem[]
_items Details about the products sold or services provided.
- localeType: string | null
The IETF language tag of the locale Checkout is displayed in.
- metadata
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to
metadata.Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to
metadata.- propertyType: string
Name
- nextType: object · PaymentIntentNextAction
_action - paymentnullable
_intent The PaymentIntent for Checkout Sessions in
paymentmode. It may be returned as an ID unless expanded.- Type: string · IntentIdmax length:100
The PaymentIntent for Checkout Sessions in
paymentmode. It may be returned as an ID unless expanded.
- paymentnullable
_link The Payment Link that created this Session, if applicable.
- Type: string · PaymentLinkIdmax length:100
The Payment Link that created this Session, if applicable.
- paymentType: array string[]
_method _types Payment method types this Checkout Session can accept.
- returnType: string | null
_url URL customers return to after redirect-based authentication.
- savedType: object · SavedPaymentMethodOptions
_payment _method _options - setupnullable
_intent The SetupIntent for Checkout Sessions in
setupmode.- Type: string · IntentIdmax length:100
The SetupIntent for Checkout Sessions in
setupmode.
- submitType: string | nullenum
_type Submit button text behavior used for Checkout Sessions in
paymentmode.values- auto
- book
- donate
- pay
- subscribe
- successType: string | null
_url URL customers are sent to when payment or setup is complete.
- uiType: stringenum
_mode The UI mode of the Session.
values- custom
- embedded
- hosted
- walletType: object
_options

