Skip to main content
Apragya AIFree quotation builderQuotation builderQuote builderno signup
Integration

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.

A shop owner and an accounts assistant exchanging a payment token and a receipt in a spice warehouse

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

  1. Invoice raised

    Sales invoice for a hotel's monthly order.

  2. Pay link created

    Razorpay link made from the invoice.

  3. Customer pays

    By UPI, card or netbanking.

  4. Webhook received

    Signature checked with your secret.

  5. Payment posted

    Receivable reduced on the invoice.

The signed webhook is what lets the payment post without anyone matching it.

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.

Spice pouches with paid tags and two ones set aside in a tray
Paid through the link and already recorded, except the two left for review.

How the Razorpay integration works

Step 1 of 5

Add API keys

Key ID and key secret, for test or live, stored encrypted.

  1. Add API keys: Key ID and key secret, for test or live, stored encrypted.
  2. Verify and activate: Apragya checks the keys with Razorpay; one gateway is active at a time.
  3. Register the webhook: Copy Apragya's webhook address into your Razorpay dashboard with a secret.
  4. Share pay links: Create a link from a sales invoice, or use it for online payment at the POS.
  5. 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

FeatureManual matchingApragya with Razorpay
Pay linkMade in the dashboardMade from the invoice
MatchingBy amount and memoryBy the invoice reference in the payment
Unclear paymentsGuessedLeft as drafts for review
RefundsAdjusted laterPayment entry reversed
Event safetyNot checkedSignature 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

  1. Create test keys in your Razorpay dashboard.
  2. Add them in Apragya as a test gateway, verify and activate.
  3. Register the webhook address and secret in Razorpay.
  4. Pay a test invoice and check the payment entry.
  5. 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

Free
Up to 3 users
CRM, HR and Vendor Onboarding
INR 3,999
Starter, a month
Up to 10 users, CRM and HR plus a choice of apps
INR 7,999
Pro, a month
Up to 25 users and every enterprise app

Connecting Razorpay, answered

Can we use both Razorpay and Stripe?
You can keep records for both, but one gateway is active at a time for new payment links.
What if a customer pays without the link?
Apragya tries to find the invoice by amount, customer and date. If it is not certain, the payment waits as a draft for review.
Are refunds handled?
Yes. A processed refund event reverses the payment entry and restores the invoice balance.
Does this cover RazorpayX payroll?
No. This is about collecting payments. Payroll runs in Apragya's own payroll app.
What does it cost to start?
The free plan covers up to 3 users with CRM, HR and Vendor Onboarding and 1,000 AI Credits a month. Starter is INR 3,999 a month for up to 10 users, with CRM and HR plus a choice of apps such as Sales and POS, Inventory, Payroll, Purchase and Payables, Support and Manufacturing. Pro is INR 7,999 a month for up to 25 users with every enterprise app, including Finance and Accounting, plus 5,000 AI Credits, single sign-on and audit logs.

Send your first invoice with a pay link

Add test keys, register the webhook, and watch a test payment post itself.