Connect Razorpay to Apragya: Payment Links on Invoices and Receipts That Post Themselves
For finance teams and shop owners collecting online: send a pay link with each invoice and see the payment recorded against it, without matching bank lines by hand.
To connect Razorpay to Apragya, you add your Razorpay key ID and key secret, verify them, make the gateway active, and register Apragya's webhook address in your Razorpay dashboard. Invoices can then carry a payment link, and captured payments are recorded against them.
Without that link, a customer pays by UPI, the money lands, and someone in accounts searches the settlement report to find which invoice it was for.
Here is how the connection works, an illustrative example and the settings to check.
Before and after connecting Razorpay
With it
- A pay link is created from the sales invoice itself.
- A captured payment creates a payment entry against the invoice.
- A processed refund reverses the payment entry.
- Test and live keys are kept as separate records, one active.
An example: a Kochi spice exporter's domestic sales
Take an illustrative spice business selling to hotels and shops across Kerala, most paying online within a week. Two people spent every Monday matching receipts.
From invoice to recorded payment
Invoice raised
Sales invoice for a hotel's monthly order.
Pay link created
Razorpay link made from the invoice.
Customer pays
By UPI, card or netbanking.
Webhook received
Signature checked with your secret.
Payment posted
Receivable reduced on the invoice.
Monday matching shrank to the few payments that arrived without a link, which the system left as drafts for review. Everything paid through a link was already recorded against its invoice.
How the Razorpay integration works
Step 1 of 5
Add API keys
Key ID and key secret, for test or live, stored encrypted.
- Add API keys: Key ID and key secret, for test or live, stored encrypted.
- Verify and activate: Apragya checks the keys with Razorpay; one gateway is active at a time.
- Register the webhook: Copy Apragya's webhook address into your Razorpay dashboard with a secret.
- Share pay links: Create a link from a sales invoice, or use it for online payment at the POS.
- Let payments post: Captured payments create payment entries; unclear ones wait as drafts.
Razorpay webhook setup that you can trust
An unsigned callback can be forged, and a payment recorded twice is worse than one recorded late. Apragya checks each event's signature against your webhook secret and processes it only once.
Manual matching, against Apragya with Razorpay
| Feature | Manual matching | Apragya with Razorpay |
|---|---|---|
| Pay link | Made in the dashboard | Made from the invoice |
| Matching | By amount and memory | By the invoice reference in the payment |
| Unclear payments | Guessed | Left as drafts for review |
| Refunds | Adjusted later | Payment entry reversed |
| Event safety | Not checked | Signature verified, processed once |
Checked against public information on 16 September 2026.
What sets Razorpay payment links for invoices apart here
On the invoice
The link, the payment and the balance sit on one record.
Clearing account
Receipts post to a gateway clearing account you configure.
Counter payments
The POS can take online payment through the same gateway.
Test and live
Separate test and live records, so testing never touches real money.
Supplier payouts
Vendor payouts through RazorpayX can be set up on the payables side.
Masked secrets
Keys are encrypted and never shown in full again.
See how payments land in sales invoices and payments; settlements then clear through bank reconciliation.
Getting started
- Create test keys in your Razorpay dashboard.
- Add them in Apragya as a test gateway, verify and activate.
- Register the webhook address and secret in Razorpay.
- Pay a test invoice and check the payment entry.
- Add live keys, activate them, and repeat with a small real invoice.
Keep the webhook secret safe. Without it, events are recorded but flagged unverified.
What it costs to start
Connecting Razorpay, answered
Can we use both Razorpay and Stripe?
What if a customer pays without the link?
Are refunds handled?
Does this cover RazorpayX payroll?
What does it cost to start?
Send your first invoice with a pay link
Add test keys, register the webhook, and watch a test payment post itself.