Webhook
You can set an Webhook URL on the gateway GUI interface. When there is an event, the gateway will notify the event to the Webhook URL. A typical example of a webhook is an event notification when the payment status of an order changes.
whenever a order status change, a GET request will be sent to the webhook URL, with below parameters.
name | type | desc |
---|---|---|
type | string | event type |
instance | string | the merchant_order_id |
code | string | event code |
message | string | |
signature | string | signature result |
Please find below a sample request data
Note the signature is used for you to validate the web hook is actually come from the Payment Gateway or not. you should validate the signature using the same algorithm as other API call.