Integrations · Cashfree

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 headerx-webhook-signature and x-webhook-timestamp
AlgorithmBase64 HMAC-SHA256 of <timestamp><raw body>, keyed with your Payment Gateway secret key
FreshnessThe timestamp (milliseconds) must be within 5 minutes
Duplicatesx-idempotency-key (webhook version 2025-01-01 and later), else a hash of the body
Event typetype field of the body, e.g. PAYMENT_SUCCESS_WEBHOOK
Secret to enterYour Payment Gateway secret key (the API client secret)
A Cashfree webhook arriving at Relaya
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

  1. 01
    In Relaya, create a webhook and pick Cashfree. Copy its URL.
  2. 02
    In the Cashfree Merchant Dashboard → Payment Gateway → Developers → Webhooks → Add Webhook Endpoint, paste the URL and pick the events.
  3. 03
    Enter your Payment Gateway secret key in Relaya: Cashfree signs webhooks with it.
  4. 04
    Add 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

EventWhat you usually do with it
PAYMENT_SUCCESS_WEBHOOKThe customer paid: confirm the order.
PAYMENT_FAILED_WEBHOOKThe payment failed: offer another method.
PAYMENT_USER_DROPPED_WEBHOOKThe customer left the payment page.
REFUND_STATUS_WEBHOOKA refund changed status.

Included for every Cashfree webhook

Verified on arrival

Forged or stale requests are rejected and kept as evidence, never forwarded.

Every event on record

Headers, payload and signature result, searchable by type or provider event ID, with secrets masked.

Forwarded with retries

Signed with Relaya-Signature, retried with backoff, with an Idempotency-Key that never changes.

Contract checks

A renamed, removed or retyped critical field opens an incident with every affected event.

Safe replay

Preview exactly what will be resent, then replay only the affected events.

Alerts

Slack, email, Jira or your own webhook when signatures fail or a destination goes down.

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.

Never miss a Cashfree event again.

Point your first webhook at Relaya today. Try the Team plan free for 7 days.