Razorpay Node
Manage orders, payments, refunds, subscriptions, invoices, payment links, and payouts via Razorpay API.
Setup
- Go to dashboard.razorpay.com
- Settings → API Keys → Generate Key
- Copy Key ID (
rzp_live_xxxorrzp_test_xxx) - Copy Key Secret
- Add a RAZORPAY credential in Nodebase
amountInRupees for convenience.Operations
Orders
CREATE ORDER — create a new payment order.
- Required: Amount (paise), Currency (INR)
- Optional: Receipt, Notes, Allow Partial Payment
Output: {{razorpay.orderId}}, {{razorpay.amount}}
Also: FETCH ORDER, FETCH ORDER PAYMENTS, LIST ORDERS.
Payments
FETCH PAYMENT, CAPTURE PAYMENT, LIST PAYMENTS, UPDATE PAYMENT.
Refunds
CREATE REFUND — refund a payment. Leave amount empty for a full refund. Speed: Normal (5-7 days) or Optimum (instant if possible).
Output: {{razorpay.refundId}}, {{razorpay.status}}
Payment Links (Most Popular)
CREATE PAYMENT LINK — Required: Amount, Description, Customer details.
Output: {{razorpay.shortUrl}} — share this link with your customer.
"Hi {{name}}, pay here: {{razorpay.shortUrl}}"Also: FETCH, UPDATE, CANCEL PAYMENT LINK.
Customers
CREATE, FETCH, UPDATE CUSTOMER. Output: {{razorpay.customerId}}
Subscriptions
CREATE SUBSCRIPTION — recurring billing. Required: Plan ID, Total Count (billing cycles).
Output: {{razorpay.subscriptionId}}, {{razorpay.status}}
Invoices
CREATE INVOICE — generate and send an invoice. Supports line items with quantity and tax.
Output: {{razorpay.invoiceId}}, {{razorpay.shortUrl}}
Payouts (Razorpay X)
CREATE PAYOUT — send money to a bank account or UPI. Required: Account Number, Fund Account ID, Amount, Mode.
Modes: NEFT | RTGS | IMPS | UPI
Output: {{razorpay.payoutId}}, {{razorpay.utr}}
Verify Payment Signature ⭐
Verify that a payment callback is genuine (not forged). Use this BEFORE fulfilling any order.
- Order ID — from your order creation
- Payment ID —
razorpay_payment_idfrom callback - Signature —
razorpay_signaturefrom callback
Output: {{razorpay.isValid}}, {{razorpay.message}}