Webhooks
Introduction
Webhooks are a way for Sonic Payment Gateway to notify your server about events that happen within your account. These events include things like new transactions, successful payouts, and more. With webhooks, you can receive real-time notifications of these events and take action accordingly.
Sample webhook payloads for deposit transactions
When a new transaction is created, Sonic Payment Gateway will send a POST request to the webhook URL specified in your account settings. The request will contain a JSON payload with information about the transaction. A sample payload for a deposit transaction might look like this:
Sample webhook for bank payout
When a bank payout is created, Sonic Payment Gateway will send a POST request to the webhook URL specified in your account settings. The request will contain a JSON payload with information about the bank payout. A sample payload for a bank payout might look like this:
Note: It is important to ensure that the webhook URL is a secure endpoint and that it properly handles the payload sent by Sonic Payment Gateway. You can also configure the webhooks to use a secret key to sign the payloads so that you can verify that they were sent by Sonic Payment Gateway.
Last updated