# Route11 > Route11 (https://route11.dev) is a payment-webhook relay for Indian businesses, hosted in India. Point Razorpay or Cashfree at a Route11 address instead of your app. Route11 checks the provider's signature, stores the webhook, and delivers it to your app with retries for about a day, a dead-letter list and one-click replay. It can also find payments whose webhook never arrived, and it signs a receipt for every finished delivery. This file is for AI coding assistants setting Route11 up in someone's app. Follow these steps in order. Never put API keys or secrets in source code, URLs, logs or chat: read them from environment variables. ## Steps to put Route11 in front of Razorpay webhooks 1. The user signs up at https://route11.dev/signup (free plan, no card) and creates an API key in the dashboard under API keys. Keys start with `r11_live_` and are shown once. Ask the user to put it in an environment variable such as `ROUTE11_KEY`. Route11 refuses keys sent in URLs: always send `Authorization: Bearer $ROUTE11_KEY`. 2. Create a destination (the user's existing webhook URL) with the Razorpay preset and the Razorpay webhook secret: ``` curl -X POST https://route11.dev/api/v1/targets \ -H "Authorization: Bearer $ROUTE11_KEY" \ -H "Content-Type: application/json" \ -d '{"name":"orders-api","url":"https://api.example.com/webhooks/razorpay","verification_preset":"razorpay","signing_secret":""}' ``` Leave out `max_retries`: a Razorpay or Cashfree destination then retries 32 times over about a day. The reply holds the destination `id` and an `outbound_secret`, shown once. For Cashfree use `"verification_preset":"cashfree"` and the Cashfree secret key. 3. The user's Route11 address is `https://route11.dev/api/v1/ingest/`. In the Razorpay dashboard: Account & Settings → Webhooks → Add new webhook, set this URL, paste the same webhook secret, and turn on `payment.captured`. Route11 answers 202 once the event is queued; a wrong signature gets 401. 4. Keep the app's existing Razorpay signature check. Route11 signs each delivery to a Razorpay destination exactly as Razorpay does (`X-Razorpay-Signature`, same secret), so the check keeps passing on retries and replays. Each delivery is also signed with `X-Route11-Signature: t=,v1=`, the HMAC-SHA256 of `.` keyed with the outbound secret as given (including `whsec_`), and with Standard Webhooks headers. 5. Make the app skip repeats by payment id: save `payload.payment.entity.id` with a unique key and mark the order paid only once. Do not use the event id for this, because `payment.captured` and `order.paid` for one payment have different event ids. Answer 2xx only after the order is saved. 6. Test: press Send test payment on the destination in the dashboard, or send a test from Razorpay. The event shows under Logs with every attempt and the app's reply. ## Good to know - Why Route11 in front of Razorpay: Razorpay retries for 24 hours and then disables the webhook, so later payments stop arriving too. Route11 answers Razorpay at once (so the webhook stays on), retries the app for about a day, holds failures for replay, and checks Razorpay's payment list for payments whose webhook never arrived. - Razorpay and Cashfree webhooks whose signed time is more than 7 days old are refused (401, `stale_webhook`). - Request bodies up to 1 MB. Destinations on private networks (localhost, 10.x, 192.168.x) are refused. - Fulfilment check: Route11 can ask the app, a few minutes after each delivered payment, whether it really recorded it. Add a read-only route such as `GET /route11/orders/{payment_id}` that answers `{"status":"fulfilled"}` or `{"status":"pending"}`, and verify `X-Route11-Signature` over the string `GET ` with the destination's outbound secret. Set it up in the dashboard under Fulfilment check. Details: https://route11.dev/docs#fulfilment - Missed-payment recovery (Razorpay and Cashfree): on the destination, open Missed payments and save the provider API key; Route11 compares what the provider says was paid with what it received. - PhonePe, PayU, Juspay, Easebuzz and Paytm signature checks are in beta. - A WooCommerce plugin and the full API (OpenAPI) are available. ## Docs - [Quick start](https://route11.dev/docs): keys, destinations, provider setup, signature checks in Node, Flask, Laravel and PHP - [Missed payment recovery](https://route11.dev/docs#recovery) - [Limits and timing](https://route11.dev/docs#limits) - [OpenAPI spec](https://route11.dev/openapi.json) - [Security](https://route11.dev/security) - [Pricing in rupees](https://route11.dev/pricing) ## Contact hello@route11.dev