Create Checkout

Hosted setup-mode Checkout Session — adblock fallback.

Used when js.stripe.com is blocked and the inline Payment Element can't load. Collects Card on File ONLY: mode='setup', no line items, no Subscription. Completion fires setup_intent.succeeded, which runs the same Layer 2 / Layer 3 / grant flow as the inline path — single source of truth lives in the webhook.

setup_intent_data.metadata.device_id carries the device into the webhook so the safety-net grant can route without a customer→device DB lookup, matching the inline flow's SetupIntent.create metadata.

post/api/payment/create-checkout

Request body

device_idstring required
success_urlstring required
cancel_urlstring required
utm_sourcestring
utm_mediumstring
utm_campaignstring
ref_codestring
fbpstring
fbcstring
fbclidstring
rdt_cidstring
auto_rechargeboolean
domainstring

Response

Successful Response

{"stackTrail":"paths:/api/payment/create-checkout:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}

Changes