razorpay

Native Razorpay payment integration for n8n workflows

Package Information

Downloads: 5 weekly / 125 monthly
Latest Version: 0.1.0
Author: n8n Community

Documentation

n8n-nodes-razorpay

This is an n8n community node package that provides native Razorpay payment integration for n8n workflows. It allows you to create payment links, verify payment completion, and manage orders seamlessly within your n8n automations.

Features

  • Payment Links: Create, retrieve, list, and cancel payment links
  • Payments: Retrieve payments, list all payments, and capture payments
  • Orders: Create orders, retrieve order details, and list all orders
  • Complete Integration: End-to-end payment flow from generation to verification

Installation

Follow the installation guide in the n8n community nodes documentation.

npm install n8n-nodes-razorpay

Credentials

You need to configure Razorpay API credentials:

  1. Key ID: Your Razorpay Key ID from the dashboard
  2. Key Secret: Your Razorpay Key Secret from the dashboard

Get these from your Razorpay Dashboard.

Operations

Payment Links

  • Create: Generate a new payment link with customer details
  • Get: Retrieve a specific payment link by ID
  • Get All: List all payment links with pagination
  • Cancel: Cancel an active payment link

Payments

  • Get: Retrieve payment details by payment ID
  • Get All: List all payments with pagination
  • Capture: Capture a payment (for manual capture flow)

Orders

  • Create: Create a new order for payment processing
  • Get: Retrieve order details by order ID
  • Get All: List all orders with pagination

Usage Examples

Creating a Payment Link

Perfect for generating payment requests that can be sent to customers:

// Input parameters
{
  "amount": 50000,  // ₹500.00 (amount in paise)
  "currency": "INR",
  "description": "Payment for Order #1234",
  "customerName": "John Doe",
  "customerEmail": "john@example.com",
  "customerContact": "+919999999999"
}

Verifying Payment Status

Check if a payment has been completed:

// Use the payment ID from webhook or previous operations
{
  "paymentId": "pay_xxxxxxxxxxxxx"
}

End-to-End Payment Flow

  1. Create Order → Get order ID for payment processing
  2. Create Payment Link → Generate link for customer payment
  3. Get Payment → Verify payment completion status
  4. Capture Payment → Capture the payment (if using manual capture)

Webhook Integration

Combine this node with n8n's Webhook node to handle Razorpay webhook events for real-time payment notifications.

Documentation

Support

For issues and feature requests, please use the GitHub repository issues section.

License

MIT License - see LICENSE file for details.

Discussion