What if I required a webhook on approved / declined order
Our checkout flow does not require a callback / webhook, making implementations fairly easy. However, in some rare cases, a merchant may require a callback / webhook to his server. We advise against this practice as it introduces a potential failure point (we have seen a fair lot of callback failures due to merchant resources not being available in the past; this is not as rare as you may think). Instead, we strongly advise checking against the payment status on the merchant landing page. This integration approach also simplifies the integration heavily and all API calls are controlled by the merchant.
That said, if you require a callback / webhook for any reasons:
- You need to set up a publicly available API to receive the call from our server
- Add your API resource URL order/initiate API payload (as an additional attribute)
Following an example:
"callbackUrl":"https://merchant.com/order-webhook/193123123/"
Updated almost 2 years ago