Skip to content

Test Razorpay webhooks

Razorpay sends webhooks for payments, orders, settlements, refunds, and subscription events. Capture them on a free webhooks.cc endpoint to see exactly what Razorpay sends — or fire realistic, correctly signed sample payloads at your own handler without touching a production account.

Start free:

No credit card · 50 requests/day free · or get a guest URL without an account

Prefer a walkthrough? Read the local webhook testing guide.

How to test Razorpay webhooks

  1. 1

    Create a webhook endpoint

    Sign in free with GitHub or Google to create a persistent endpoint — or grab an instant guest URL at webhooks.cc/go without an account.

  2. 2

    Point Razorpay at your URL

    Paste the endpoint URL into Razorpay: Razorpay Dashboard → Account & Settings → Webhooks.

  3. 3

    Inspect what arrives

    Each delivery appears live in the dashboard with method, headers, body, query parameters, and source IP.

  4. 4

    Forward to localhost or assert in CI

    Run whk tunnel <port> to forward webhooks to a local server, or use the TypeScript SDK to wait for and assert on deliveries in tests.

Razorpay webhook signature

Signature headerx-razorpay-signature
AlgorithmHMAC-SHA256
Verification in webhooks.ccSupported — add your signing secret and every request is checked automatically

New to signature verification? Read the webhook signature verification guide.

Send sample Razorpay events

These Razorpay templates ship with realistic payloads and valid signature headers. Send them from the dashboard's Send button, the SDK, or your AI agent via MCP.

payment.capturedpayment.failedorder.paid
# Send a signed Razorpay sample with the SDK
await client.endpoints.sendTemplate( slug, {
  provider: "razorpay",
  template: "payment.captured",
  secret: "your-test-secret",
});

Everything in one place

  • Live dashboard — see deliveries the moment they arrive
  • Forward to localhost with whk tunnel
  • Replay any captured request to any URL
  • Mock responses with custom status, headers, and body
  • TypeScript SDK assertions for CI
  • MCP server for AI coding agents

Razorpay webhook questions

More providers

Browse all 32 providers

Your Razorpay webhook URL is seconds away

Sign up free, create an endpoint, and point Razorpay at it.

No credit card · or try without an account