Skip to main content

Payment status transitions ๐Ÿงถ

In the PAYSTRAX Gateway system, each payment object โ€” an authorisation, a transfer, and so on โ€” evolves through a small set of status changes.

The status field in the response body tells you the outcome of an operation. Always read it before updating your system.

StatusMeaning
pendingAccepted and queued for the card network. Normal outcome for sales, payouts, funding, and refunds.
successConfirmed by the network. Normal outcome for pre-auth authorisations and cancellations.
failDeclined or errored. The body contains a failure object with code and reason.
unknownOutcome indeterminate at response time. Treat as potentially in-flight; check status before retrying.
note

HTTP 201 Created only confirms the gateway received the request. The real outcome is in the status field of the response body.

Transition scenariosโ€‹

unknown is excluded from the table below โ€” it's an edge case, not astep in the normal lifecycle.

FlowStatus evolutionNotes
authorisesuccess or failOften synchronous.
transferpending โ†’ success or failOften asynchronous โ€” expect pending first.
๐Ÿงถauthorise + Capturesuccess (authorisation) โ†’ success (capture)Two objects; often asynchronous.
authorise + Cancelsuccess (authorisation) โ†’ fail (authorisation updated)Cancelled before capture.
๐Ÿงถtransfer โ†’ Refundsuccess or fail (transfer updated)Refunded fully or partially.

Authorisations are usually synchronous, but captures, cancels, and reversals can be asynchronous depending on the processor. Always confirm the final state via GET or webhook rather than assuming the initial response is final.