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 activated for live payments. Use a separate test-mode setup when verifying the integration.
- 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
When Connect or create Razorpay account is available in Payment Settings:
- Click it and finish sign-in, account creation and any KYC on Razorpay's page.
- Return to Miru and check the connection status. Connecting alone does not confirm live merchant approval.
- Enable Show Razorpay on INR invoices after the account is ready.
This connection collects invoice payments. RazorpayX, Payroll and payouts require separate setup.
Existing API-Key Setup
If your workspace uses API keys, keep that setup:
- 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.
Confirm an Uncertain Connected-Account Link
If a connected-account request times out, Miru keeps the original reference and blocks another payment link. An empty lookup does not prove Razorpay rejected the first request.
An owner or administrator can open Settings → Payment Settings → Razorpay, find Payment links need confirmation, and click Check Razorpay. Check the account and test/live mode listed for that invoice. If you found the link in Razorpay, enter its plink_ ID; Miru verifies it against the original invoice, reference, amount and currency before accepting it. This check does not create another link or resend SMS.
The background recovery job also checks uncertain links every five minutes while the original account remains connected. If a confirmed link belongs to an invoice that was closed or changed, Miru retains its references and queues cancellation. Captured money that cannot be applied appears separately under Razorpay payments need your review. An unresolved lookup remains blocked for investigation.
If a link cannot be found, a workspace owner or administrator should contact Razorpay support with the listed reference, account and mode. Keep that invoice blocked while checking its outcome. Do not create a replacement invoice to bypass it.
Customers see Payment needs confirmation while the outcome is uncertain. Pay is unavailable, and Miru withholds UPI QR codes and bank instructions for that invoice. Ask the customer not to pay again while accounts checks the original attempt. Invoice UPI buttons recheck the invoice before opening the payment app. Previously copied UPI links, QR codes and bank details cannot be recalled.
Paid, waived and zero-balance invoices do not offer another payment. A confirmed cancelled or expired link can allow another method after any captured-money review is resolved.
For a captured payment requiring review, open its invoice and compare the bank payment with the amount due. Record the payment on the invoice or refund it through Razorpay as appropriate, then use Mark as reviewed after verifying that action. Marking a review does not itself record or refund money.
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.