Accepted, or Razorpay retries.
Payment webhooks for India · Razorpay and CashfreePayment webhooks for India
Never miss a payment webhook.
Make sure every paid order reaches your app. Nothing is silently lost. If Route11 cannot accept a webhook, the sender gets an error and retries. Razorpay keeps trying for 24 hours. Once Route11 accepts, it checks the webhook and keeps delivering until your app confirms.
- Razorpay
- Cashfree
- Stripe
- Shopify
- GitHub
Free plan with 2 destinations. No card, no call. Hosted in India, in Bangalore and Mumbai.
How we crashed it · How the proof works · Pricing in rupees
pay_Q8x2Pa · Razorpay
- Received and storedstored
- Signature checkedgenuine
- Attempt 1 to your app500
- Attempt 2, after backoff500
- Attempt 3200 delivered
- Receipt signed, Ed25519 and ML-DSA-65verify
What Route11 does while you sleep
Missed-payment recovery
Finds payments your app never got, and delivers them.
pay_Q8x2Pa · recoveredUPI late-success alerts
Know when a failed payment succeeds minutes later.
pay_Q8x1Zt · 12 min lateA repeat changes nothing
After a crash the same payment can arrive again. Save its id once, and the second copy does not make a second order.
pay_Q8x2Lm · duplicate skippedStays in India
Stored and delivered from India (Mumbai and Bangalore). Prices in rupees.
region · IndiaEvery month, in rupees
See how much money Route11 saved you.
Retries and queues are how it works. What you see is the result: the paid orders that reached your app only because Route11 retried them or found them at Razorpay or Cashfree. It is in your dashboard all month, and in your inbox on the 1st.
Route11 · monthly report
Route11 saved ₹38,700 for your store in November
₹38,700
- ₹31,200 from 14 payments your app did not accept the first time. Route11 kept retrying until it did.
- ₹7,500 from 3 payments whose webhook never arrived. Found at Razorpay and sent to your app.
- 2 repeat webhooks held back, so no order shipped twice.
For businesses that keep selling
People still pay school fees, see doctors, renew insurance and buy groceries when times are hard. Route11 is built so every one of those payments reaches your app.
- Education and coachingFees paid, seat not confirmed
- Clinics, labs and pharmaciesPaid for the appointment, no slot booked
- Insurance and premiumsPremium paid, policy not issued
- Subscriptions and membershipsRenewed and charged, but cut off
- Online stores and D2C brandsPaid order, never shipped
- SaaS and software renewalsInvoice paid, account still locked
Build payments for clients like these? Become a Route11 partner.
A missed webhook is a customer who paid and got nothing.
Your app will be down sometimes: a deploy, a crash, a slow database. The payment still happens. What matters is whether your app finds out.
- 11:52:07
- Webhook sent to your app
- 11:52:07
- 500, a bug in last night's deploy
- After 24 h
- Razorpay stops retrying and switches the webhook off
- Next payments
- Not sent either, until someone notices
- Order
- Still pending
- Next day
- "I paid ₹4,300. Where is my order?"
- 11:52:07
- Received and stored
- Signature
- Genuine
- Attempt 1
- 500, trying again
- Attempt 2
- 500, trying again
- Attempt 3
- 200, delivered
- Order
- Confirmed
Why Route11
It also finds payments whose webhook never arrived.
General webhook tools retry what they receive. Route11 also asks Razorpay and Cashfree what was paid, so a payment whose webhook never arrived is still found.
How missed-payment recovery works
And it checks your app really recorded the payment.
Most webhook tools stop when your app answers 200. But an app can answer 200 and still lose the order: a failed database write, a crashed job, a bug. Route11's fulfilment check asks your app a few minutes later whether it recorded each payment. If not, Route11 delivers it again and tells you.
We tried to break it.
Before letting anyone rely on Route11, we ran it for two hours under steady load and crashed it on purpose every 15 minutes: we killed the worker, restarted the queue, cut the database off and restarted the API.
- A payment arrives.
- We kill the server. The payment is held safely.
- Back within a minute. Then it is delivered.
- Events accepted
- 4,66,672
- Events delivered
- 4,66,672
- Lost in this test
- 0
- Delivered twice in this test
- 0
Every crash recovered within a minute, with nothing lost. In a recovery test with 1,000,000 deliveries, a full restore took 7.4 minutes. Accepting a webhook takes about 33 ms with the database in Mumbai.
Set it up with your AI coding assistant
Paste this into Claude Code, Cursor or any coding agent. It reads Route11’s guide for assistants and puts Route11 in front of your Razorpay webhooks.
Put Route11 in front of my Razorpay webhooks. Follow https://route11.dev/llms.txt
Keep your Razorpay code as it is
Give Razorpay your Route11 address and use the same webhook secret in Route11. Route11 signs every delivery the way Razorpay does, so the signature check already in your app keeps passing, on retries and replays too. Cashfree works the same way.
The check below is the one you already have. A bad signature is refused. The payment id is saved once, so a repeat does not create a second order.
Prefer one check for every sender? Each delivery is also signed the Standard Webhooks way. The quick start shows that sample.
If your app is down when the payment arrives, nothing changes in this code. Route11 simply calls it again.
import crypto from 'crypto';
import express from 'express';
const app = express();
const raw = express.raw({ type: 'application/json' });
app.post('/payments', raw, async (req, res) => {
const expected = crypto.createHmac('sha256', process.env.RAZORPAY_WEBHOOK_SECRET).update(req.body).digest('hex');
const got = String(req.headers['x-razorpay-signature'] || '');
if (expected.length !== got.length || !crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(got))) {
return res.sendStatus(400); // not signed by Razorpay
}
const payment = JSON.parse(req.body.toString()).payload.payment.entity;
// db is your database. Save payment.id once, with a unique key.
// Not the event id: it differs for payment.captured and order.paid.
await db.markOrderPaidOnce(payment.id, payment.order_id);
res.sendStatus(200);
});
import hmac, hashlib, json, os
from flask import Flask, request, abort
app = Flask(__name__)
SECRET = os.environ['RAZORPAY_WEBHOOK_SECRET'].encode()
@app.post('/payments')
def payments():
body = request.get_data()
expected = hmac.new(SECRET, body, hashlib.sha256).hexdigest()
got = request.headers.get('X-Razorpay-Signature', '')
if not hmac.compare_digest(expected, got):
abort(400) # not signed by Razorpay
payment = json.loads(body)['payload']['payment']['entity']
# db is your database. Save payment['id'] once, with a unique key.
db.mark_order_paid_once(payment['id'], payment['order_id'])
return '', 200
<?php
$body = file_get_contents('php://input');
$expected = hash_hmac('sha256', $body, getenv('RAZORPAY_WEBHOOK_SECRET'));
$got = $_SERVER['HTTP_X_RAZORPAY_SIGNATURE'] ?? '';
if (!hash_equals($expected, $got)) {
http_response_code(400); // not signed by Razorpay
exit;
}
$payment = json_decode($body, true)['payload']['payment']['entity'];
// $db is your database. Save the payment id once, with a unique key.
$db->markOrderPaidOnce($payment['id'], $payment['order_id']);
http_response_code(200);
What happens to every webhook
One route, five stops. If your app is slow or down, the event waits and tries again instead of disappearing.
Received
Your provider sends the webhook to your Route11 address. It is stored before Route11 answers.
Checked
The signature is checked with your secret. Forged requests are refused.
Shaped
Filters drop what you don't need. Templates reshape the data for your app.
Delivered
Sent to your app, signed by Route11, and tried again with backoff until it succeeds.
Recorded
Every attempt is kept with its time, status and reply. Replay any event with one click.
Built for Indian payments, hosted in India
Payment webhooks carry your customers' payment details. With Route11, they are stored and processed on our servers in India (Bangalore and Mumbai).
Razorpay and Cashfree signatures are checked out of the box, the same way their own documentation describes. Stripe, Shopify and GitHub work too.
- Servers in Bangalore, database in Mumbai
- Razorpay and Cashfree ready, no custom code
- Plans in rupees, from ₹0 to ₹4,999 a month. See pricing
- Help from the person who built it, in your timezone
Receive webhooks, and send them
The reason to use Route11 is a Razorpay or Cashfree payment. It can also deliver your own events to your customers.
Receiving
Point Razorpay, Cashfree, Stripe or any signed sender at Route11.
- Signature checks for Razorpay, Cashfree, Stripe, Shopify, GitHub and custom HMAC
- Filters on payload fields, so only the events you want get through
- One address can deliver to several of your apps
- Rate limits per destination, so a burst can't flood your app
- A tunnel to your laptop, to test a real webhook before you deploy. The CLI is not on npm yet; ask us for a copy.
Sending
Deliver your product's own events to your customers.
- POST /api/v1/messages with event_type and payload, signed the Standard Webhooks way so your customers can check them with existing libraries
- Retries with exponential, linear or fixed backoff
- A failing endpoint is paused automatically, and you are told
- Alerts to Slack or Discord when an endpoint keeps failing
- Live logs and one-click replay in the dashboard
Built to be trusted with other people's data
Each of these is covered by automated tests that run on every change.
Missed payments, and proof a delivery happened
Missed payment recovery
Live for Razorpay and Cashfree. Route11 compares the payments those providers report with the webhooks it received, and can send the ones your app never saw.
Signed, quantum-safe proof
When someone asks whether a payment reached your app, show the receipt. Every finished delivery becomes a receipt in an append-only log, so a changed record would be noticed, signed with Ed25519 and with ML-DSA-65, a signature built to outlast quantum computers. Anyone can check a proof at route11.dev/verify. How it works
Checkout heartbeat
Alerts when payments to your app drop far below the usual for that hour (after 7 days of history). One alert down, one on recovery. Snooze for festivals or planned downtime.
Monthly completeness score
Payments reported by the provider, delivered, recovered, still missing, and the % delivered within 5 minutes, as a signed monthly summary.
Being built with our first users
These are next. Early users decide which comes first.
WhatsApp alerts
Hear about failed deliveries where you already are, with a link to replay them.
Questions people ask first
Razorpay already retries. Why do I need Route11?
Razorpay retries for 24 hours and then switches the webhook off, so every payment after that stops reaching your app until someone turns it back on. Its webhook logs cover the last 3 hours, and self-service replay is limited to 5 a day for events up to 7 days old (Razorpay’s webhook docs). Route11 answers Razorpay at once, so the webhook stays on. It keeps retrying your app for about a day, holds anything that still fails for replay, keeps every attempt for your plan’s period, alerts you when your app keeps failing, and checks Razorpay’s payment list for any payment whose webhook never arrived.
Do I need to change my code?
No. Give Razorpay your Route11 address and the same webhook secret. Route11 signs each delivery the way Razorpay does, so the check already in your app keeps passing. Cashfree works the same way. The quick start shows that check, and the optional Standard Webhooks check if you want one for every sender.
What if Route11 itself goes down?
If Route11 cannot accept a webhook, the sender gets an error and retries. Razorpay keeps trying for 24 hours, so nothing is silently lost. When Route11 does accept, it stores the event before it answers, and delivers it after a restart. If Route11 were ever down for longer than a day, Razorpay would switch the webhook off and email you, and Route11’s missed-payment recovery finds those payments once it is back.
Could my app receive the same event twice?
Rarely, after a crash at exactly the wrong moment. Route11 prefers sending twice to not sending at all. Save the payment id (payload.payment.entity.id) with a unique key and skip one you have already handled. It is the same on every try and on both payment.captured and order.paid.
Where is my data kept?
In India: the servers are in Bangalore and the database is in Mumbai. Event history is kept for 7 days on Free, 30 on Starter, 90 on Growth, a year on Scale, and you can export or delete it at any time.
What does it cost?
Free covers 5,000 payment events a month and 2 destinations. Starter is ₹1,499 a month and Growth ₹4,999, plus GST. Retries, replays and tests are always free. The first 10 customers get 3 months free, then half price for their first year, with today's price locked while they stay. See pricing
Bring your first payment webhook through Route11
Create an account with your work email and follow the quick start. Want help? Write to us and we'll watch the first payment arrive with you.
hello@route11.dev. We usually reply within one working day.