1. The browser redirect (not reliable on its own)
After the customer finishes (or abandons) checkout, their browser is redirected to your account’s Callback URL, with the outcome appended as query parameters:2. Polling the API (the reliable source of truth)
CallGET /api/transaction/{ref} with the transactionId you were given when you created the payment (the transaction_id field in the create payment response context, i.e. your own reference — see that page for exactly which value to use).
Recommended pattern
- Right after creating the payment, start polling this endpoint for that transaction on a short interval (e.g. every 5–10 seconds) — from your server, not the customer’s browser.
- Stop polling once
statusreaches a final value (Success,UnsuccessfulorExpired— see below). - If the browser redirect arrives in the meantime, use it to update the UI immediately, but keep treating the poll result as the source of truth for actually fulfilling the order.
- If nothing terminal happens within a reasonable window (a few minutes), stop polling on a schedule and fall back to checking manually or via
GET /api/transactionslater — a payment that’s still genuinely pending on the processor’s side can take longer than a typical polling window to resolve.
Status values
The same value is appended as
status to your Callback URL when the customer returns from checkout.

