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
- 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
1
Log in to [Razorpay Dashboard](https://dashboard.razorpay.com/).
Log in to Razorpay Dashboard.
2
Navigate to **Account & Settings** → **API Keys** under **Website a...
Navigate to Account & Settings → API Keys under Website and app settings.
3
Click **Generate Key**.
Click Generate Key.
4
Copy both **Key ID** and **Key Secret**.
Copy both Key ID and Key Secret.
Set Up API Keys in n8n
In n8n, create a new Razorpay API credential:- Enter your credentials:
- Key id: Your Razorpay Key id (For example,
rzp_test_1234567890orrzp_live_1234567890) - Key Secret: Your Razorpay Key Secret.
- Key id: Your Razorpay Key id (For example,
- 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)
- Log in to the n8n Dashboard.
- Click Settings in the left sidebar.
- Click Community Nodes in the settings menu.
- Install the Node.
- Click Install a community node.
- Enter the package name:
@razorpay/n8n-nodes-razorpay. - Click Install.
- 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:Method 3: Docker Installation
If you are using n8n with Docker, add the package to your Docker setup:Add Package
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 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.
Handy Tips
- Start with Test Mode: Always use test credentials when setting up and testing your workflows.
- Check API Documentation: Refer to Razorpay API documentation for detailed parameter information.
- Use Webhooks: Consider setting up Razorpay webhooks for real-time payment updates in your workflows.