Appearance
Webhooks β
The Webhook feature enables your system to receive real-time transaction updates automatically. Once the final transaction status is determined (such as successful or failed), our platform sends a secure HTTP POST request to your configured webhook endpoint with the latest transaction details.
π‘This allows your system to receive updates instantly without repeatedly polling the API.
How It Works β
You configure a webhook (callback) URL in your account settings page.
When a payment is processed, a webhook notification is sent to your endpoint containing the event data .
Your server receives the request, processes the payload, and returns a response confirming receipt.
How to setup a signed webhook β
Log in to your Merchant Account and go to:
Settings β API Configuration β API Keys & Webhooks.
Find the Callback Secret field, click Edit, enter your secret key (without spaces), and then click Save.
signature = request.headers["signature"]
if signature exists:
payload = request.raw_body
secret = "YOUR_MERCHANT_CALLBACK_SECRET"
computed = HMAC_SHA256(payload, secret)
if secure_compare(computed, signature) is false:
return HTTP 401 Unauthorized
process webhook
return HTTP 200 OKπ‘ Important Notes
- Your webhook endpoint must be publicly accessible and able to receive HTTP requests.
- Your server should return a successful response (e.g., HTTP 200) after processing the webhook.
- For security, you should validate the webhook using signature verification when a Callback Secret is configured.
