Webhooks enable real-time notifications from the Payment Options Gateway API, allowing your application to automatically respond to events such as completed payments, failed transactions, or refunds. By setting up a webhook handler, you can receive these notifications directly and act on them instantly.
return_url
parameter. This includes URLs for handling various outcomes, such as success, decline, and cancellation.
return_url
parameter in your API payload:
Step 1: Define Your Webhook URL
Step 2: Register Your Webhook URL
return_url
parameter as shown in the example above. Ensure that it’s properly registered in the API request payload for each transaction.Step 3: Secure Your Webhook
Step 4: Handle the Webhook Payload