Skip to content

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 on clientSecret, confirm it with confirmPayment or confirmSetup by confirmationType, then call checkout again with the same offerToken until it answers granted.

The union is open. Treat a status this client does not list as pending.

attemptId: string

Identifies this purchase attempt. Returned on every status; quote it when contacting support.


optional clientSecret?: string

requires_confirmation only. Hand it to Stripe.js on your page; never log or store it.


optional confirmationType?: "payment_intent" | "setup_intent" | string & object

requires_confirmation only: payment_intent → stripe.confirmPayment, setup_intent (a trial) → stripe.confirmSetup.


optional runId?: string

pending only, and not always. An id for diagnosing the asynchronous charge.


status: "granted" | "charged" | "pending" | "requires_confirmation" | string & object

edgekit.ai