Skip to main content
A Payment Session represents a customer’s payment intent. Create a session server-side, then use the client_secret to mount the payment form on your frontend.

Payment Flow

Card data is collected securely via the SDK and never touches your servers.

Create a Session

Request Parameters

Response

Session Lifecycle States

Sessions progress through a state machine from creation to completion:

Session Expiration

Sessions expire automatically to prevent stale payment intents. Expired sessions cannot be completed.
Best Practice: Set shorter expiration times for high-value transactions. If a session expires before the customer completes payment, create a new session.

Retrieve a Session

Cancel a Session

Cancellation reasons: duplicate, fraudulent, requested_by_customer, abandoned