Skip to content

CheckoutSession

Response from creating a checkout for a payment.

Fields

clientSecretString!

Client secret for Stripe.js confirmPayment().

paymentIdID!

The payment record ID in our database.

amountInt

Total amount to be charged, in cents (tax- and tip-inclusive), when the server computed it up front. Lets the client render an exact "Pay · $X" without recomputing tax. Null for flows that don't surface it.

The funding source this intent was actually minted for. Usually the one the buyer asked for; CARD when a BANK request failed a server-side gate the client couldn't see (most often an inactive capability on the connected account).

The intent carries exactly one payment method type, so a client that mounted the bank form against a card intent cannot confirm it — this field is how the checkout notices the fallback and re-renders as card instead of failing at confirmPayment. Null for flows that don't offer a method choice.

Used in