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

# RazorPay (India)

## Before you start

* [Enable **Funnelish Pay**](/start/collecting-payments.md), before you try adding a payment gateway.
* Add a [**payment form**](/start/funnel-builder/editor-forms.md) to a funnel step.

{% hint style="info" %}
After you have created a gateway, you can use it again on any number of funnels.
{% endhint %}

## Getting your credentials

1. On your **RazorPay account**, go to **Settings**;

<figure><img src="/files/PDgmqSFtoSpnoMacuMs8" alt=""><figcaption><p>Razorpay settings.</p></figcaption></figure>

2. Go to **API keys**, then regenerate a new one.

<figure><img src="/files/biFbI2OSSCqFGOIe0qKA" alt=""><figcaption><p>Razorpay API keys.</p></figcaption></figure>

3. You will be asked to deactivate the old key: choosing any option won’t make any difference.<br>

<figure><img src="/files/NfkXP2PYyloaRVJqDW9I" alt=""><figcaption></figcaption></figure>

3. Copy the **Key ID** and **Key secret**.

## Create a gateway

1. Open a funnel step.
2. Click the payment form field.
3. In the left settings panel, click **Edit payment** **options**.
4. Click **Connect a new gateway.**
5. In the pop-up window, click **RazorPay**.

<figure><img src="/files/wnMrbu09lzILVSwXnWDV" alt=""><figcaption><p>Razorpay.</p></figcaption></figure>

## Connect

On the **New gateway** window:

1. Enter a unique Gateway name. This name is for internal use, it is not visible in the funnel.
2. (When required) If you are using a test mode credential, toggle the switch to enable it.&#x20;
3. Paste your **Key ID** and **Key secret** in the corresponding field.&#x20;
4. Click **create** & **Save changes**.

<figure><img src="/files/rTptoGCoHnFCzgy9yokV" alt=""><figcaption><p>Connecting Razorpay.</p></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.funnelish.com/start/collecting-payments/razorpay-india.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
