Skip to main content

What is the difference between callback_url and return_url?

callback_url is the address on your server that receives webhooks; return_url is where the buyer's browser goes after paying. The first tells your system the money arrived, the second only brings the buyer back to your store.

This page was checked against the API code as of October 16, 2026.

How do they differ in detail?#

callback_urlreturn_url
Called bySekaliPay's serverThe buyer's browser
WhenWhen the payment is confirmed paidWhen the buyer is on a payment page that is paid, failed, or expired
SignedYes, X-SignatureNo
Can mark an order paidYes, after verificationNo

Which URL is used?#

  1. The value in the POST /payment request.
  2. The default under API Settings, Webhook & Return URL.
  3. If both are empty: no webhook is sent, and the buyer is sent to a SekaliPay page.

What does the buyer see after paying?#

The payment page shows a paid confirmation, then redirects the browser automatically after 5 seconds to return_url with three added parameters:

Destination URL
https://toko-anda.id/checkout/selesai?invoice=SPY1791446400K3QZ&status=success&merchant_ref_id=ORDER-2026-00184

If your URL already has a query string, the parameters are appended with &. Without a return URL, the buyer is sent to a SekaliPay page after 3 seconds. Failed and expired pages do not redirect automatically; the buyer gets a button back to return_url without parameters.

status=success is not proof of payment

Anyone can open your URL with that parameter. Mark orders paid only from a verified webhook or a status check.

Ready to use your own keys?

Sign in to the merchant dashboard to copy your API key and secret key, set the access mode and webhook URL, and download a Postman collection with your account's keys.

Sign in to the dashboard