Skip to Content
Core ConceptsPayment Lifecycle

Payment Lifecycle

Statuses

payments.get() and payments.status() return one of:

StatusMeaning
INITIATEDPayment record created; the prompt to the customer is still being confirmed as sent.
PENDINGThe customer has the prompt and hasn’t responded yet.
SUCCESSThe customer completed the payment.
FAILEDThe payment did not succeed — see Errors for why.
CANCELLEDThe customer dismissed the prompt without entering a PIN.

SUCCESS, FAILED, and CANCELLED are terminal — once a payment reaches one of these, it never changes again. A callback that arrives late for an already-terminal payment is recorded for audit and otherwise ignored, so you never have to guard against a payment un-succeeding.

The public status is a five-value summary. Two internal states are folded into it: an expired prompt (EXPIRED) is reported as FAILED, and a fully refunded payment (REVERSED) is reported as SUCCESS with refundedAmount set. The webhook event type — payment.expired, payment.reversed — is what tells the two cases apart. Partial refunds leave the payment SUCCESS.

Refunds and disputes are separate records

A refund doesn’t change the original payment’s status back from SUCCESS — the payment stays SUCCESS, and the refund is tracked as its own linked record (refundedAmount on the payment reflects how much of it has been refunded). Likewise, a dispute is tracked separately rather than mutating the original payment. See Refunds.

Webhook events are more specific than the status field

The status field is intentionally small — five values, easy to switch on. Webhook event types carry more resolution (payment.expired, payment.reversed, payment.refunded, payment.disputed are all distinct events, not folded into FAILED). See Webhook events for the full catalogue.

Last updated on