# 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**

![](/files/-MJGtdZQ1vxTxVzU3knR)

###

### 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>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://edentech.gitbook.io/foodie/laravel-admin-backend/payment-callbacks.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
