Skip to content

TransactionOutcome

What a transaction’s status means for your checkout. Derived from TransactionStatus by one table, so you do not have to keep your own.

  • succeeded — the customer paid.
  • failed — the customer did not pay: declined, cancelled, closed or expired.
  • processing — not finished; wait, or let handleRedirectResult() or waitForTransaction() wait for you.
  • unknown — Pesepay could not find out what happened, or reported a status this SDK does not recognise. Not a failure. The customer may have paid. Confirm on your server before letting them pay again.
  • reversed — paid, then the money was returned.
export type TransactionOutcome = "succeeded" | "failed" | "processing" | "unknown" | "reversed";