---
title: Razorpay
slug: razorpay
docTags: 
createdAt: 2023-01-17T11:53:03.000Z
---

Razorpay offers a payment solution in India that enables businesses to accept, process, and disburse payments. There are many payment modes you can use including credit cards, debit cards, net banking, UPI, JioMoney, Mobikwik, Airtel Money, FreeCharge, Ola Money, and PayZapp.

With Engati’s Razorpay integration, you can provide an automated payment link to the customer to make the payment online.

## <font color="#ae1536">Prerequisites</font>

There are a few prerequisite steps to follow before integrating with Engati. The section covers generating API credentials, configuring a webhook endpoint, and fetching the Merchant ID.

## <font color="#ae1536">Setup</font>

### Step 1: Fetching merchant ID

a. Login to your Razorpay account

![](https://api.archbee.com/api/optimize/iOTpn18P7FMUIZT5seFCm/n1X2aT0BBEng7Tp_kyArB_screenshot-2024-02-11-at-60426-pm.png)

b. Click on the profile icon (present in the right top corner) and copy the merchant ID.

![](https://api.archbee.com/api/optimize/iOTpn18P7FMUIZT5seFCm/P5uyWCwNOWC32eEk2aRmC_screenshot-2024-02-11-at-60935-pm.png)

### Step 2: Generating API credentials on Razorpay

a. Login to your Razorpay account and navigate to **Account & Settings > Website and app settings > API keys**

![](https://api.archbee.com/api/optimize/iOTpn18P7FMUIZT5seFCm/2TsmiXnPhjZQ7O3KSfxVl_screenshot-2024-02-12-at-31904-pm.png)

b. Click on the API keys option and then click on Generate (Mode) Key/ Regenerate (Mode) Key

Note: (Note: If it shows ‘Regenerate (Mode) Key’ either you can generate a new one and you could share with us the old Keys)

![](https://api.archbee.com/api/optimize/iOTpn18P7FMUIZT5seFCm/2AVOqP7t-1AapiySc-1rG_screenshot-2024-02-12-at-32301-pm.png)

### Step 3: Configuring Engati webhook point

a. Click on the webhooks option under the settings

![](https://api.archbee.com/api/optimize/iOTpn18P7FMUIZT5seFCm/duCi4KUjdjSN2o7Ys_yk8_screenshot-2024-02-12-at-32413-pm.png)

b. Click on the Add new webhook option and fill in the fields with the following details:

i. Webhook URL:  [https://agents.engati.ai/v1.0/razorpay/webhook](https://agents.engati.ai/v1.0/razorpay/webhook)

ii. Webhook Secret: It is an optional field however Engati expects a value. Please note that for Test as well as Live mode the secret should remain the same. 

iii. Active Events: 

- Payment.failed
- Payment\_link.paid
- Payment\_link.expired
- Payment\_link.cancelled

![](https://api.archbee.com/api/optimize/FEqjvWZnyymr_PEhXLLlG/FwYo7_WxFTE4yaqaq1tTZ_image9.jpg)

### Step 4 : Integrate with Engati

a. Once you log in to your Engati account, Navigate to the **Integrations > Cloud Integrations >  Razorpay**. Click on the **‘Connect’** button.

![](https://api.archbee.com/api/optimize/iOTpn18P7FMUIZT5seFCm/Xd_sjCHEXmtu6a_1BIEdd_screenshot-2024-02-12-at-33318-pm.png)

b. Once you click on the **‘Connect’** button, fill in the following fields

i. Put your Razorpay Merchant ID in the account ID field

ii. Enter the Key ID and Key secret generated under Settings - API keys (Razorpay portal)

**Note**: Please make sure that you put the key values as per the mode selected.

iii. Enter the same Webhook secret value added under Settings -> Webhook

![](https://api.archbee.com/api/optimize/FEqjvWZnyymr_PEhXLLlG/N9uoYTfMeeEe3ZlFm0ZIW_screenshot-2025-03-05-at-93426-am.png)

![](https://api.archbee.com/api/optimize/FEqjvWZnyymr_PEhXLLlG/STtLayiSeh75yL70UlEmd_image.png)



iv. Add new Webhook.

![](https://api.archbee.com/api/optimize/FEqjvWZnyymr_PEhXLLlG/mG3MbaKsQtGyjKPRog86t_image.png)



**Note**: Please note that for Test as well as Live mode the secret should remain the same.

::Image[]{src="https://api.archbee.com/api/optimize/FEqjvWZnyymr_PEhXLLlG/2O6uD7EJXIi72uD_lgWNa_image1.jpg" size="56" width="1426" height="1632" position="center" showCaption="false"}

c. Once you fill in all the details, click on **‘Connect’**.

d. Now to configure your bot with the added Razorpay account, go to settings and click on integrations.

![](https://api.archbee.com/api/optimize/FEqjvWZnyymr_PEhXLLlG/sxHN7diyjw8MeiRRCzBS0_image10.jpg)

e. Click on the Razorpay option and select the account from the dropdown menu. Lastly, click on the save button.

![](https://api.archbee.com/api/optimize/FEqjvWZnyymr_PEhXLLlG/Ax1lw-N8hteSzj5wUlz9G_image8.jpg)

::Image[]{src="https://api.archbee.com/api/optimize/FEqjvWZnyymr_PEhXLLlG/7WVOfsxokEu4INwOFiOSa_image11.jpg" size="64" width="1862" height="876" position="center" showCaption="false"}

If you face any issues or queries please reach out to us at [support@engati.ai](mailto\:support@engati.ai).
