# Razorpay Webhooks

Foodomaa 3.0+ implements Razorpay webhooks to capture payment data even when the transaction status is not received immediately.&#x20;

### Setup Process

**Step 1:** Login to your [RazorPay dashboard.](https://dashboard.razorpay.com/)

**Step 2:** Go to Settings > [WebHooks](https://dashboard.razorpay.com/app/webhooks)&#x20;

**Step 3:** Click **Add New Webhook**

**Step 4:** Here you need to enter the webhook URL:

`https://domain.com/api/payment/razorpay/webhook`

Change domain.com to your own domain name.

**Step 5:** In the Secret field, set a key (this can be any key you want)

**Step 6:** In the Active Events field, select **payment.failed** and **payment.captured**

**Screenshot:**

![](/files/zzGlLmkNS5L3GWJV2JYL)

**Step 7:** Click Create Webhook.

**Step 8:** Login to your Foodomaa Admin Dashboard

**Step 9:** Go to **Settings > Payment Gateways > Razorpay Webhook Secret** and insert the same Secret key you set on **Step 5**

**Step 10.** Save the 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://docs.foodomaa.com/faqs/razorpay-webhooks.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.
