CheckoutSession
Response from creating a checkout for a payment.
Fields
clientSecretString!Client secret for Stripe.js confirmPayment().
stripeAccountIdIDThe connected account the PaymentIntent was created on. Direct charges run on the business's connected account (it is merchant of record), so the client must initialise Stripe.js for this account (new Stripe(pk, {stripeAccount})) before confirmPayment(). Null only for legacy/platform-account intents.
paymentIdID!The payment record ID in our database.
amountIntTotal 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.
fundingSourceCheckoutFundingSourceThe 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.
confirmedBooleanTrue when the server already confirmed the intent, against a bank mandate the buyer authorized before checkout (FundingPreferenceInput.mandate). There is nothing left for the client to confirm: call completePurchase. False or null means confirm it with Stripe.js as usual.