> ## Documentation Index
> Fetch the complete documentation index at: https://razorpay-60c89f9a-mintlify-audit-missing-sections-1778528421.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Install Razorpay n8n Community Node

> Follow the steps given below to install the Razorpay n8n Community Node.

### Prerequisites

Before installing, ensure you have:

* **n8n Instance**: Running n8n v1.104.2 or higher
* **Node.js**: Version 14.x or higher (for self-hosted)
* **Razorpay Account**: Active account at [razorpay.com](https://razorpay.com)
* **Admin Access**: Permission to install community nodes

## Step 1: Generate Razorpay API Keys

You need to generate Razorpay API keys before using the node.

### Access API Keys

<Steps>
  <Step title="Log in to [Razorpay Dashboard](https://dashboard.razorpay.com/).">
    Log in to [Razorpay Dashboard](https://dashboard.razorpay.com/).
  </Step>

  <Step title="Navigate to **Account & Settings** → **API Keys** under **Website a...">
    Navigate to **Account & Settings** → **API Keys** under **Website and app settings**.
  </Step>

  <Step title="Click **Generate Key**.">
    Click **Generate Key**.
  </Step>

  <Step title="Copy both **Key ID** and **Key Secret**.">
    Copy both **Key ID** and **Key Secret**.
  </Step>
</Steps>

<Warning>
  **Watch out!**

  Save the Key id and Secret immediately - it will not be shown again.

  #### Understand Key Types

  **For Development & Testing**

  * Prefix: `rzp_test_`
  * No real money transactions
  * Free to use
  * Use [test cards](/payments/payments/test-card-details)

  Always start with test keys for safe development.

  **For Production**

  * Prefix: `rzp_live_`
  * Real money transactions
  * Requires completed KYC
  * Transaction fees apply

  Only use after thorough testing.
</Warning>

### Set Up API Keys in n8n

In n8n, create a new Razorpay API credential:

1. Enter your credentials:
   * Key id: Your Razorpay Key id (For example, `rzp_test_1234567890` or `rzp_live_1234567890`)
   * Key Secret: Your Razorpay Key Secret.
2. Test the connection to ensure your credentials are working correctly.

## Step 2: Install the Razorpay n8n Community Node

Choose your installation method based on your n8n deployment:

### Method 1: Install via n8n Community Nodes (Recommended)

1. Log in to the **n8n Dashboard**.
2. Click **Settings** in the left sidebar.
3. Click **Community Nodes** in the settings menu.
4. Install the Node.
   1. Click **Install a community node**.
   2. Enter the package name: `@razorpay/n8n-nodes-razorpay`.
   3. Click **Install**.
5. Restart **n8n**. After restart, the Razorpay node will be available.

### Method 2: Install via npm (Self-hosted)

For self-hosted n8n installations, run the following commands:

```bash theme={null}
# Navigate to n8n directory
cd ~/.n8n

# Install the Razorpay community node
npm install @razorpay/n8n-nodes-razorpay

# Restart n8n service
pm2 restart n8n
# OR
systemctl restart n8n
```

### Method 3: Docker Installation

If you are using n8n with Docker, add the package to your Docker setup:

```yml: Add Package theme={null}
 # In your Dockerfile or docker-compose.yml
 FROM n8nio/n8n:latest
 USER root
 RUN npm install -g @razorpay/n8n-nodes-razorpay
 USER node
```

You have successfully installed the Razorpay n8n Community Node.

## Next Steps

After installation, you can proceed with the following:

* Create a new workflow or open an existing one.
* Add the **Razorpay** node by searching and dragging it from the node panel.
* Set up your Razorpay API credentials.
* Choose the [operation](/razorpay-n8n-node/operations-reference) you want to perform (Create Order, Fetch Payment and so on.)
* Configure the required parameters for your selected operation.
* Test your workflow to ensure everything works correctly.

<Info>
  **Handy Tips**
</Info>

* Start with Test Mode: Always use test credentials when setting up and testing your workflows.
* Check API Documentation: Refer to [Razorpay API documentation](/api) for detailed parameter information.
* Use Webhooks: Consider setting up [Razorpay webhooks](/webhooks) for real-time payment updates in your workflows.

### Related Documentation

* [Explore Use Cases & Examples](/razorpay-n8n-node/use-cases)
* [View Available Operations](/razorpay-n8n-node/operations-reference)
* [Frequently Asked Questions](/razorpay-n8n-node/troubleshooting-faqs)
* [Set up Webhooks](/webhooks)
