Payment Callbacks
When using payment gateways like Paystack, Stripe, Razorpay, after every transaction, the payment gateways need to notify our server about the status of the payment.
Here are the list of web hook/callback apis for the integrated payment gateways:
Paystack:
https://SERVER_URL/api/order/payment/update/paystack
Razorpay:
https://SERVER_URL/api/order/payment/update/razorpay
Stripe:
https://SERVER_URL/api/order/payment/update/stripe
How to setup webhooks for different payment gateways.
Paystack
Login into your merchant account.
Click on the settings menu at the bottom left corner of the screen.
On the settings page click on API Keys & Webhooks tab.
Then in the form enter the webhook provided above in the input label Live Webhook URL
Razorpay
Here is a link to the official documentation on how to setup webhook on razorpay https://razorpay.com/docs/webhooks/#set-up-webhooks
Stripe
Here is a link to the official documentation on how to setup webhook on stripe https://stripe.com/docs/webhooks/go-live#configure-webhook-settings
Last updated