Skip to content

Checking payment status

You have two ways to find out how a transaction ended up — use both.

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.

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 returnUrl page
  • Reconciliation jobs that sweep pending transactions

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.