Checkout
A Checkout Session represents your customer's session as they pay for one-time purchases or subscriptions through Checkout. We recommend creating a new Session each time your customer attempts to pay.
You can create a Checkout Session on your server and pass its ID to the client to begin Checkout.
Related guide: Checkout Quickstart.
Checkout Session Object
Attributes
Attribute | Type | Description |
---|---|---|
| string | Unique identifier for the object. |
| string | String representing the object’s type. Objects of the same type share the same value. |
| number | Total of all items after discounts and taxes are applied. |
| string | If set, Checkout displays a back button and customers will be directed to this URL if they decide to cancel payment and return to your website. |
| number | Time at which the object was created. Measured in seconds since the Unix epoch. |
| number | The time at which the Checkout Session will expire. Measured in seconds since the Unix epoch. |
| string | The status of the Checkout Session, one of |
| string | The URL the customer will be directed to after the payment or subscription creation is successful. |
| string | The transaction status of the Checkout Session is one of |
| string | The type of checkout session. |
| string | The URL at which the user has to make the payment. |
Create a Session
Last updated