Checking payment status
You have two ways to find out how a transaction ended up — use both.
Push: the result callback
Section titled “Push: the result callback”Pesepay posts the final status to the resultUrl you set when you created
the transaction, as soon as the customer finishes (or the transaction times
out). This is the primary way production integrations should reconcile
orders. See The Result Callback.
Pull: check payment status
Section titled “Pull: check payment status”Call Check Payment Status with a
transaction’s referenceNumber any time you need the current state —
useful for:
- A safety net if a callback delivery is ever delayed or missed
- Rendering a “checking your payment…” state on your
returnUrlpage - Reconciliation jobs that sweep pending transactions
Reading the status
Section titled “Reading the status”transactionStatus is one of a fixed set of values — see
Transaction Statuses for the full list
and which ones are terminal (safe to stop checking) versus in-progress.