Skip to content

This documentation is being phased out. Our payment gateway is moving to a new platform. Switch to the new developer documentation to stay up to date.

Go to the new documentation

Handle Payment Success and Failure

Upon payment success or failure, the customer is redirected to a page on your website. As part of the onboarding process, please provide us with your webhook URL. Upon payment completion, we will invoke your designated endpoint and transmit the following details:

Success Response
{
"orderId": "wb-e883b28d-0cd3-455d-9903-ef5d3d8ddf27",
"paymentId": "PAY0642d0df582e4d8fa96d796e79b52c99",
"status": "success",
"receiptId": "66497326b1577421a0e99fb3",
"amount": 500.00,
"signature": "37bedbdf0381d1df56677487217e4aa02040320f396691da3e783eb0a0591c",
"timestamp": "2025-04-10T13:42:54.563Z",
"paymentDetails": {
"paymentMethod": "card",
"cardNetwork": "visa",
"cardType": "credit"
}
}
Failure Response
{
"orderId": "wb-e883b28d-0cd3-455d-9903-ef5d3d8ddf27",
"paymentId": "PAY0642d0df582e4d8fa96d796e79b52c99",
"status": "failure",
"receiptId": "66497326b1577421a0e99fb3",
"amount": 500.00,
"signature": "b57b027aae98d1d307bea6257fba9ce2b832e8530274c6b458f972084a0305",
"timestamp": "2025-04-10T13:42:54.563Z",
"paymentDetails": {
"paymentMethod": "card",
"cardNetwork": "visa",
"cardType": "credit"
}
}