Cashfree webhooks: verify, monitor and replay
Cashfree Payment Gateway reports successful, failed and dropped payments and refunds through webhooks. Relaya verifies each one with your secret key and timestamp, records it, and forwards it to your code with retries, so your order status never depends on one HTTP request getting through.
Why route Cashfree webhooks through Relaya
For many Indian businesses the webhook is the only reliable signal that money arrived. Relaya answers Cashfree immediately from a separate ingest path, checks the signature and the timestamp so old requests can't be replayed, and keeps the event so you can resend it to your system after an outage instead of reconciling by hand.
What Relaya checks on every request
| Cashfree | |
|---|---|
| Signature header | x-webhook-signature and x-webhook-timestamp |
| Algorithm | Base64 HMAC-SHA256 of <timestamp><raw body>, keyed with your Payment Gateway secret key |
| Freshness | The timestamp (milliseconds) must be within 5 minutes |
| Duplicates | x-idempotency-key (webhook version 2025-01-01 and later), else a hash of the body |
| Event type | type field of the body, e.g. PAYMENT_SUCCESS_WEBHOOK |
| Secret to enter | Your Payment Gateway secret key (the API client secret) |
POST https://api.relaya.sbs/v1/in/in_7Kq…
x-webhook-timestamp: 1792000000123
x-webhook-signature: q0Zs…4w=
{ "type": "PAYMENT_SUCCESS_WEBHOOK", "event_time": "2026-10-17T10:15:00+05:30",
"data": { "order": { "order_id": "KC_18427", "order_amount": 2499 }, "payment": { "payment_status": "SUCCESS", … } } }Set up Cashfree webhooks in about 15 minutes
- 01In Relaya, create a webhook and pick Cashfree. Copy its URL.
- 02In the Cashfree Merchant Dashboard → Payment Gateway → Developers → Webhooks → Add Webhook Endpoint, paste the URL and pick the events.
- 03Enter your Payment Gateway secret key in Relaya: Cashfree signs webhooks with it.
- 04Add your endpoint as a destination; events are forwarded there, signed by Relaya, with retries.
Then verify Relaya's signature in your endpoint and answer 2xx. The docs show how, with SDKs for Node, Python, PHP, Go and Java.
Cashfree events teams route through Relaya
| Event | What you usually do with it |
|---|---|
PAYMENT_SUCCESS_WEBHOOK | The customer paid: confirm the order. |
PAYMENT_FAILED_WEBHOOK | The payment failed: offer another method. |
PAYMENT_USER_DROPPED_WEBHOOK | The customer left the payment page. |
REFUND_STATUS_WEBHOOK | A refund changed status. |
Included for every Cashfree webhook
Verified on arrival
Every event on record
Forwarded with retries
Contract checks
Safe replay
Alerts
Cashfree webhooks: common questions
Which Cashfree key signs webhooks?
Your Payment Gateway secret key (the client secret you use with the API). Enter it in Relaya; it is encrypted at rest with a key unique to your organization.
Does Relaya support Cashfree’s idempotency header?
Yes. With webhook version 2025-01-01 and later Cashfree sends x-idempotency-key, and Relaya uses it to drop repeats. For older versions it falls back to a hash of the payload, since retries resend the same body.
Are timestamps in seconds or milliseconds?
Cashfree sends milliseconds. Relaya accepts both and rejects requests more than 5 minutes old or in the future.
Does Relaya also support Razorpay, PayU and PhonePe?
Yes, all three, plus Stripe, Shopify and more than ten other providers, so all your payment webhooks are checked and recorded in one place.
Keep reading
Never miss a Cashfree event again.
Point your first webhook at Relaya today. Try the Team plan free for 7 days.