Statuses
Payment statuses and the HTTP status each charge answers.
A payment moves through these statuses. The table is generated from the code that moves payments, so it is always the one the API follows.
| Status | Meaning | Charge answers | Final |
|---|---|---|---|
created | Recorded, not yet sent to an acquirer. | 202 | no |
processing | Sent; the outcome is not known yet. It may still succeed: wait for the webhook or poll. | 202 | no |
requires_action | The buyer must complete 3-D Secure at next_action.url. | 201 | no |
authorized | Approved and held; capture or void it. | 201 | no |
succeeded | Captured: money moved. | 201 | no |
partially_refunded | Captured, with part of it refunded. | 201 | no |
refunded | Captured and fully refunded. | 201 | no |
disputed | The cardholder disputed the charge. | 201 | no |
declined | The acquirer or a routing rule declined it. See decline_code. | 402 | yes |
failed | Provably never charged: no acquirer received it. | 402 | yes |
canceled | The authorization was voided. | 402 | yes |
expired | Abandoned before any acquirer answered. | 402 | yes |
"Charge answers" is the HTTP status POST /v1/payments and
POST /v1/payment-instruments/{id}/charges return for a payment in that status. A final
status never changes again.
How statuses move
created → processing → succeeded → partially_refunded → refunded
↘ authorized → succeeded | canceled
↘ requires_action → authorized | succeeded | declined
↘ declined | failed
A cardholder dispute moves an authorized or captured payment to disputed.
Unknown outcomes
processing means the charge was sent and its answer isn't known yet: the acquirer timed out
or answered something we couldn't read. It may still succeed. Don't charge the buyer again.
Duevance asks the acquirer again with backoff, applies its callbacks, and the payment settles
into succeeded, authorized, declined or failed, with a webhook. If the acquirer never
answers, the payment stays processing and our operators check it with the acquirer.
failed is different: the charge provably never reached an acquirer, so nothing was charged
and you may retry with a new Idempotency-Key.
Failover
When an acquirer gives a soft decline, or provably received nothing, Duevance tries the next eligible channel with the same payment. It never fails over after an unknown outcome, because the first acquirer may have charged. The payment shows the outcome of the last attempt.