Razorpay Setup
Razorpay lets India-based teams collect INR invoice payments through Payment Links. Customers can pay with the methods enabled in your Razorpay Dashboard, including UPI, Indian credit and debit cards, netbanking, and wallets.
Before You Start
- Use a Razorpay account with live API keys.
- Activate RazorpayX before enabling UPI payouts.
- Keep the Razorpay Key Secret and webhook secret private. Miru stores them encrypted and only shows whether they are configured.
Connect Razorpay
- Open Settings → Payment Settings → Razorpay.
- Click Open Razorpay and copy the live Key ID and Key Secret.
- Paste the Key ID and Key Secret into Miru.
- Keep Show Razorpay on INR invoices enabled.
- Click Save Razorpay.
Add Webhooks
In Miru, use Copy setup from the Razorpay webhook box. It copies both endpoint URLs and the events to select.
Payment Links webhook:
https://app.miru.so/webhooks/razorpay/payment_links
Select these events:
payment_link.paidpayment_link.partially_paidpayment_link.cancelledpayment_link.expired
RazorpayX payouts webhook:
https://app.miru.so/webhooks/razorpay/payouts
Select these events:
payout.pendingpayout.queuedpayout.initiatedpayout.processedpayout.updatedpayout.failedpayout.rejectedpayout.reversedpayout.cancelled
Use the same webhook secret in Razorpay and Miru. The webhook secret is different from the API Key Secret.
Enable UPI Payouts
- Activate RazorpayX and payout API access.
- Add the RazorpayX account number in Miru.
- Add the verified payout UPI ID.
- Enable UPI payouts.
- Keep Queue low-balance payouts enabled if RazorpayX should queue payouts when the source account balance is low.
Verify
- Create a test INR invoice.
- Open the client payment link and pay through Razorpay test mode.
- Confirm the invoice is marked paid after the webhook delivery.
- If UPI payouts are enabled, confirm the payout row appears on the Payments page and moves to the final RazorpayX status after webhook delivery.