CheckoutResponseBody
CheckoutResponseBody =
object
A purchase that reached the charge. Every status means the card may have
been charged, so show none of them as a failure:
granted(200): charged, and the grant is written.charged(202): charged, and the grant is not written yet. EdgeKit finishes it.pending(202): the charge is still being processed and its result is not known yet. Show it as still processing, never as refused.requires_confirmation(202, Stripe only): nothing has been charged. Mount Stripe’s Payment Element onclientSecret, confirm it withconfirmPaymentorconfirmSetupbyconfirmationType, then call checkout again with the sameofferTokenuntil it answersgranted.
The union is open. Treat a status this client does not list as pending.
Properties
Section titled “Properties”attemptId
Section titled “attemptId”attemptId:
string
Identifies this purchase attempt. Returned on every status; quote it when contacting support.
clientSecret?
Section titled “clientSecret?”
optionalclientSecret?:string
requires_confirmation only. Hand it to Stripe.js on your page; never
log or store it.
confirmationType?
Section titled “confirmationType?”
optionalconfirmationType?:"payment_intent"|"setup_intent"|string&object
requires_confirmation only: payment_intent → stripe.confirmPayment,
setup_intent (a trial) → stripe.confirmSetup.
runId?
Section titled “runId?”
optionalrunId?:string
pending only, and not always. An id for diagnosing the asynchronous
charge.
status
Section titled “status”status:
"granted"|"charged"|"pending"|"requires_confirmation"|string&object