# How to Register for a Razorpay Account, Obtain the API Key, and Integrate it in iCommerce

### To register for a Razorpay account, please follow the below steps:

1. Go to the Razorpay website at [www.razorpay.com](http://www.razorpay.com).
2. Click on the "Sign Up" button at the top right corner of the homepage.
3. Fill in the registration form with your business details and click on the "Submit" button.
4. Once your account is created, you will receive an email with instructions on how to activate your account.
5. Follow the instructions in the email to activate your account.

### To generate an API key for Razorpay, please follow the below steps:

1. Log in to your Razorpay account.
2. Click on the "Settings" option from the left-hand side menu.
3. Click on the "API Keys" option.
4. Click on the "Generate Key" button to create a new API key.
5. Once the key is generated, you will see a "Key ID" and a "Key Secret". These are your API key credentials.
6. Copy the "Key ID" and "Key Secret" and save them in a secure location.

### To integrate Razorpay in iCommerce, follow these steps:

1. Log in to your iCommerce account.
2. Click on the "Settings" option from the left-hand side menu.
3. Click on the "Integrations" option.
4. Select "Payment Gateway".
5. Select "Razorpay" as the payment gateway provider.
6. Enter the "Key ID" and "Key Secret" that you copied earlier.
7. Click on the "Save" button.

Your Razorpay account is now integrated with iCommerce, and you can start accepting payments on your website.

**Select Payment Gateway:**

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

**Insert API Credentials:**

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

### Why Generating an API Key for Razorpay is Required

An API key is a unique identifier that is used to authenticate and authorize access to a third-party service, such as a payment gateway. Generating an API key for Razorpay is required to enable us to integrate the payment gateway on your iCommerce website.

The API key contains sensitive information that allows us to securely communicate with the Razorpay payment gateway and process transactions on your behalf. By generating an API key and providing it to us, you are granting us permission to access your Razorpay account and process payments on your behalf.

At iCommerce, we take the security and privacy of our customers' information seriously. We will ensure that your API key is kept confidential and used only for the purpose of integrating the payment gateway on your iCommerce website.

If you have any questions or concerns about generating an API key for Razorpay or integrating the payment gateway on your iCommerce website, please do not hesitate to contact us. We are always here to help.

Best regards,

The iCommerce Team


---

# 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.icommerce.co.in/documentations/onboarding/how-to-register-for-a-razorpay-account-obtain-the-api-key-and-integrate-it-in-icommerce.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.
