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.

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 runId?: string

pending only. An id for diagnosing the asynchronous charge.


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