Setup the Webhook URL is mandatory to get the final status of every API call
After the completion of every payment/refund call, AeronPay will provide direct notification to your server regarding the event. These are called Webhooks. You must configure a valid HTTPS endpoint that is reachable from our servers to consume these notifications. Our servers will push data using an HTTPS POST call to your endpoint.
Based on the API version configured in the dashboard, webhooks will be triggered for the events below.
Event Status | Status Code | Event Message |
---|---|---|
⦿ SUCCESS | 200 | Transaction Successful |
⦿ FAILED | 400 | Transaction Failed |
⦿ REJECTED | 450 | Transaction Rejected |
Sample Webhook Response of SUCCESS
{
"status":"SUCCESS",
"statusCode":"200",
"transactionId":"ARNPYXXXXXXX8669",
"client_referenceId":"9582948592",
"acknowledged":"1",
"utr":"322017636298",
"description":"Transaction Successful"
}
Sample Webhook Response of FAILED
{
"status":"FAILED",
"statusCode":"400",
"transactionId":"ARNPYXXXXXX41390",
"client_referenceId":"3662648264",
"description":"Transaction Failed"
}
Sample Webhook Response of REJECTED
{
"status":"REJECTED",
"statusCode":"450",
"transactionId":"ARNPYXXXXXXX8573",
"client_referenceId":"572745837",
"description":"Transaction Rejected"
}
Webhook Authentication
We support Basic HTTP Authentication for your Webhook URL. Using Username and password fields to authenticate the webhook call is mandatory. Please ensure that special characters like @ are not used in usernames.
Handling Failures
If your server is not reachable and we receive a non-200 response when we are attempting webhook notification, we would mark the webhook notified section in our dashboard as False. Hence, consume webhooks with 200 response codes.
Note: Webhook API version can be configured in the dashboard > Settings > Webhooks Tab > Webhook API version.