This is an n8n community node. It lets you use Razorpay in your n8n workflows.
Razorpay is a comprehensive payment solution that allows businesses to accept, process and disburse payments with its product suite. It gives you access to all payment modes including credit card, debit card, netbanking, UPI and popular wallets including JioMoney, Mobikwik, Airtel Money, FreeCharge, Ola Money and PayZapp.
n8n is a fair-code licensed workflow automation platform.
Installation
Operations
Credentials
Compatibility
Usage
Resources
Follow the installation guide in the n8n community nodes documentation.
This node supports the following operations across different Razorpay resources:
- Fetch All Orders - Retrieve details of all orders with optional filters (authorization status, date range, receipt number, etc.)
- Create Payment Link - Create a payment link for customers with customizable options (amount, currency, customer details, expiry, etc.)
- Fetch Payment Link - Fetch payment link details by ID
- Fetch Payment - Fetch payment details by payment ID with optional expansion of card, EMI, offer, and UPI details
- Fetch All Payments - Retrieve details of all payments with optional filters (date range, pagination)
- Fetch All Refunds - Retrieve details of all refunds with optional filters (date range, pagination)
- Fetch Settlement - Fetch settlement details by settlement ID
- Fetch All Settlements - Retrieve details of all settlements with optional filters (date range, pagination)
- Fetch Invoices for Subscription - Retrieve all invoices of a subscription
- Fetch All Disputes - Retrieve all disputes raised by customers with optional expansion of payment and settlement details
To use this node, you need to authenticate with Razorpay using your API credentials.
- Sign up for a Razorpay account: If you don't have one already, create an account at razorpay.com
- Complete your KYC: Ensure your account is activated and KYC is completed to access live mode
- Log in to your Razorpay Dashboard at https://dashboard.razorpay.com
- Navigate to Settings → API Keys or directly visit https://dashboard.razorpay.com/#/app/keys
- You'll find two types of keys:
- Test Keys: For testing and development (starts with
rzp_test_
) - Live Keys: For production use (starts with
rzp_live_
)
- Test Keys: For testing and development (starts with
- In n8n, create a new Razorpay API credential
- Enter your credentials:
- Key ID: Your Razorpay Key ID (e.g.,
rzp_test_1234567890
orrzp_live_1234567890
) - Key Secret: Your Razorpay Key Secret
- Key ID: Your Razorpay Key ID (e.g.,
- Test the connection to ensure your credentials are working correctly
This node supports the standard Razorpay API authentication method using:
- Key ID and Key Secret: The primary authentication method for most API operations
Tested locally against n8n v1.104.2.
There are several ways to install this community node in your n8n instance:
- Open n8n: Access your n8n instance
- Go to Settings: Click on "Settings" in the left sidebar
- Navigate to Community Nodes: Click on "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: The node will be available after n8n restarts
If you're running n8n in a self-hosted environment:
# Navigate to your n8n installation directory
cd ~/.n8n
# Install the community node
npm install @razorpay/n8n-nodes-razorpay
# Restart your n8n instance
If you're using n8n with Docker, add the package to your Docker setup:
# In your Dockerfile or docker-compose.yml
FROM n8nio/n8n:latest
USER root
RUN npm install -g @razorpay/n8n-nodes-razorpay
USER node
Once installed:
- Create a new workflow or open an existing one
- Add the Razorpay node: Search for "Razorpay" in the node panel and drag it into your workflow
- Configure credentials: Set up your Razorpay API credentials (see Credentials section)
- Select operation: Choose the operation you want to perform (Create Order, Fetch Payment, etc.)
- Configure parameters: Fill in the required parameters for your selected operation
- Test and execute: Test your workflow to ensure everything works correctly
- Start with Test Mode: Always use test credentials when setting up and testing your workflows
- Check API Documentation: Refer to Razorpay's API documentation for detailed parameter information
- Use Webhooks: Consider setting up Razorpay webhooks for real-time payment updates in your workflows
If you're new to n8n, check out the Try it out documentation to help you get started with workflow automation.