# Razorpay

## Global Settings

You can integrate and set up **Razorpay** to the Cost Calculator in the Payments of the **Global settings**. To do this, go to **Global Settings >Payments> Card Payments** and click **Apply to all calculators** to apply settings to all calculators.

And here you can see **Razorpay**:

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2F5GRLuImeRfhDHVkcsqnu%2Fpayments%2014.jpg?alt=media&#x26;token=15c64d10-27f5-4b12-962a-13587007e9f8" alt=""><figcaption></figcaption></figure>

After clicking on **Setup,** these settings will come up:

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2FKpKNuZRWv0XiG0CHmU5Z%2Fpayments%2015.jpg?alt=media&#x26;token=ebe2ac0b-9ee8-457c-aa53-8677e54c0c87" alt=""><figcaption></figcaption></figure>

**Razorpay key ID** - A key ID that can be generated on the Developer Controls page in the My Account & Settings of Razorpay.

**Key secret** - A key secret that can be generated on the Developer Controls page in the My Account & Settings of Razorpay.

**Currency** - Put the currency you want to get payments in.

## Settings in the Calculator

You can also set up **Razorpay** to the Cost Calculator in the **Payments** section of Individual settings. To do this, go to the **Settings** tab of the calculator you want and head over to the **Card Payment** of the **Payments** section. There will be **Razorpay**:

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2FjlP2HPrLCJK1mtzznWJM%2Fpayments%2021.jpg?alt=media&#x26;token=bc278f32-17ef-4066-9d04-356f63ff844a" alt=""><figcaption></figcaption></figure>

After enabling **Stripe** and clicking on **Setup,** these settings will come up:

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2FKpKNuZRWv0XiG0CHmU5Z%2Fpayments%2015.jpg?alt=media&#x26;token=ebe2ac0b-9ee8-457c-aa53-8677e54c0c87" alt=""><figcaption></figcaption></figure>

**Razorpay key ID** - A key ID that can be generated on the Developer Controls page in the My Account & Settings of Razorpay.

**Key secret** - A key secret that can be generated on the Developer Controls page in the My Account & Settings of Razorpay.

**Currency** - Put the currency you want to get payments in.

**Total Field Element** - It is a feature at the end of the Payments section that lets you choose one or some Total fields(Formula elements) you want to show or hide.

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2FjLJtuX8wzNqKkA4FZm73%2Fpayments%2022.jpg?alt=media&#x26;token=5b884855-8b44-463e-a377-7c4d2edfc7cc" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
When "**Apply for all calculators**" is enabled in the Global settings, it will be applied for all created calculators, and there will be a notice when you edit the individual settings of the certain calculator.&#x20;
{% endhint %}

## Generating and adding Public and Secret keys from Razorpay

First, you need a Razorpay account. To get the keys, log in to the [RazorpayX ](https://x.razorpay.com/auth)website. After logging in to your profile, you can generate the necessary keys from **My Account & Settings.**  To learn more about generating keys, visit [Razorpay's docs](https://razorpay.com/docs/x/dashboard/api-keys).

To generate keys, follow **Dashboard > My Account & Settings > Developer Controls**.

{% hint style="info" %}
When generating API keys in Live mode, you must enter the OTP sent to you. This is to authorize the new user to generate a new set of keys. The same is **not applicable** to Test Mode.
{% endhint %}

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2Fqmp2T7JF2hSxuAl40UWI%2Fpayments%2017.jpg?alt=media&#x26;token=4dd778f9-c1af-4a5e-ac4f-5d2105e9efe5" alt=""><figcaption></figcaption></figure>

Then get your key by clicking on the **Generate key.** Don't forget to download your key file.

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2FvwkQw6irtCHcPLIJhSIM%2Fpayments%2018.jpg?alt=media&#x26;token=1de88293-ee21-4faa-a9e0-38799fecca51" alt=""><figcaption></figcaption></figure>

Next, copy your **Key ID and  Key Secret** and paste them into the Razorpay key ID and Razorpay key secret fields:

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2FURbVgNiWx2LfaMbnGqqQ%2Fpayments%2020.jpg?alt=media&#x26;token=cc98b618-abcf-45cb-a1b4-11a8f8168a04" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
The actions taken in the **Test mode** have no consequences in your live environment. No real money is used in the test mode. Learn more about [Test Mode](https://razorpay.com/docs/x/dashboard/test-mode/).
{% endhint %}

## Useful Links

<table><thead><tr><th width="69" data-type="number">№</th><th>Links</th></tr></thead><tbody><tr><td>1</td><td><a href="https://razorpay.com/x/">What is difference with Razorpay and RazorpayX?</a></td></tr><tr><td>2</td><td><a href="https://razorpay.com/docs/x/sign-up">How to create a Razorpay account?</a></td></tr><tr><td>3</td><td><a href="https://razorpay.com/docs/x/dashboard/test-mode/">What is a test mode in Razorpay?</a></td></tr><tr><td>4</td><td><a href="https://razorpay.com/docs/x/dashboard/api-keys">How to generate API keys in Razorpay?</a></td></tr></tbody></table>


---

# 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.stylemixthemes.com/cost-calculator-builder/payments/razorpay.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.
