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:

  1. Paystack: https://SERVER_URL/api/order/payment/update/paystack

  2. Razorpay: https://SERVER_URL/api/order/payment/update/razorpay

  3. Stripe: https://SERVER_URL/api/order/payment/update/stripe

How to setup webhooks for different payment gateways.

Paystack

  1. Login into your merchant account.

  2. Click on the settings menu at the bottom left corner of the screen.

  3. On the settings page click on API Keys & Webhooks tab.

  4. 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