Skip to main content
SayaBeliPay does not send your server a push notification (webhook) when a payment’s status changes. There is no event subscription to configure. Status reaches you two ways, and only one of them is reliable — read on.

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:
This is a genuinely useful signal — it’s how you’d show the customer an immediate “payment successful” page — but it is not guaranteed to happen. If the customer closes the tab, loses connection, or their browser is blocked from redirecting for any reason, this never reaches you at all, regardless of whether the payment actually succeeded on the processor’s side.
Never mark an order as paid, ship a product, or grant access to a service based on this redirect alone. Treat it purely as a UX signal for the customer in front of you right now, and confirm the real status server-side before acting on it.

2. Polling the API (the reliable source of truth)

Call GET /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).
  1. 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.
  2. Stop polling once status reaches a final value (Success, Unsuccessful or Expired — see below).
  3. 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.
  4. 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/transactions later — 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.
Only Success means “money received.” Treat every other value as not paid, and don’t hard-fail on a value you don’t recognise — new values may be added.