> For the complete documentation index, see [llms.txt](https://docs.foodomaa.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.foodomaa.com/faqs/razorpay-webhooks.md).

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