First of all, go to the Webhook page as shown. You will get all of the available webhooks listed there.
After that, click on "Add Webhook" to create a new webhook. You will be asked to select predefined events according to your needs. After selecting the events, enter your callback URL. This URL will be used as a callback for the selected events. Finally, enter your description, and you are good to go.
PREVIEW WEBHOOK
After creating webhook you can preview webhook by clicking preview button as shown below.
In the preview section, you can find the history of fired webhooks for specific events that you defined before.
Note: You don't need to regenerate API keys if they have already been generated previously.
In the history section, you can find successful or failed responses. Therefore, you can track your webhook events accordingly. You can change the preview for specific events using the Action button displayed in the list.
Also, you can test your webhooks using preview button. Just select your event and click on the test button.
Note: You can test webhook only once. After testing your webhook it will reload your history of webhooks.
MODIFY WEBHOOK
You can Modify, and Delete webhook as shown below.
Webhook Merchant Signature Documentation
Generate Signature:
To generate a signature for your webhook data, you can use the hash_hmac function along with the SHA-256 hashing algorithm. The signature is formed by concatenating specific elements from your webhook data and then applying the hashing algorithm.
$id: The order ID retrieved from your webhook data.
$merchant_ref: The merchant reference retrieved from your webhook data.
$amount: The converted amount retrieved from your webhook data.
$currency: The converted currency retrieved from your webhook data.
$merchant_secret_key: The secret key obtained from the merchant panel specifically for your account.
By concatenating these elements and applying the hashing algorithm using your merchant secret key, you can generate a secure signature for your webhook data. This signature can be used for verification purposes to ensure the integrity and authenticity of the data received via webhooks.