Stripe webhooks: verify, monitor and replay
Stripe reports payments, subscriptions, invoices and disputes through webhooks. Relaya sits in front of your endpoint: it checks every Stripe-Signature, drops duplicates, records each event, and forwards it to your code with retries and a replay button for the day something goes wrong.
Why route Stripe webhooks through Relaya
Stripe's own dashboard shows deliveries to your endpoint, but not what your code did with them, whether a payload changed shape, or which customers were affected when something failed. Relaya keeps every event, groups failures into incidents, and replays exactly the affected events once you have fixed the bug, each with the same Idempotency-Key.
What Relaya checks on every request
| Stripe | |
|---|---|
| Signature header | Stripe-Signature: t=…,v1=… |
| Algorithm | Hex HMAC-SHA256 of <t>.<raw body>, keyed with the endpoint's signing secret (whsec_…) |
| Freshness | The timestamp must be within 5 minutes; older or future-dated requests are rejected |
| Duplicates | Event id in the body (evt_…) |
| Event type | type field of the body, e.g. invoice.paid |
| Secret to enter | The endpoint's signing secret, whsec_… |
POST https://api.relaya.sbs/v1/in/in_7Kq…
Stripe-Signature: t=1792000000,v1=5257a8…c1f0
{ "id": "evt_1Q…", "object": "event", "type": "invoice.paid",
"data": { "object": { "id": "in_1Q…", "amount_paid": 4900, "currency": "usd", … } } }Set up Stripe webhooks in about 15 minutes
- 01In Relaya, create a webhook and pick Stripe. Copy its URL.
- 02In the Stripe Dashboard → Developers → Webhooks → Add endpoint, paste the URL and choose the events to send.
- 03After saving, reveal the endpoint's signing secret (
whsec_…) and enter it in Relaya. - 04Add your own endpoint as a destination. Relaya forwards each event there, signed, 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.
Stripe events teams route through Relaya
| Event | What you usually do with it |
|---|---|
payment_intent.succeeded | A payment went through. |
checkout.session.completed | A Checkout session finished: provision what was bought. |
invoice.paid | A subscription invoice was paid: extend access. |
invoice.payment_failed | Start dunning before access lapses. |
customer.subscription.updated | Plan, quantity or status changed. |
charge.dispute.created | A chargeback opened: respond before the deadline. |
Included for every Stripe webhook
Verified on arrival
Every event on record
Forwarded with retries
Contract checks
Safe replay
Alerts
Stripe webhooks: common questions
Does Relaya check the Stripe-Signature timestamp?
Yes. The timestamp in the t= part must be within 5 minutes of the time Relaya receives the request; anything older or future-dated is rejected and kept as evidence. All v1 signatures in the header are tried, so a secret roll works.
Which Stripe secret do I enter?
The signing secret of the webhook endpoint (whsec_…), shown after you add the endpoint in the Stripe Dashboard. Not your API key.
Will my code receive Stripe events twice?
Relaya drops repeats of the same event ID before forwarding. Each forwarded request also carries an Idempotency-Key that stays the same across Relaya’s own retries, so your handler can ignore anything it has already processed.
Can I keep using Stripe’s official libraries?
Your endpoint receives the original body and a Relaya-Signature header to verify instead of Stripe’s. Verification is a few lines of HMAC code in any language, or use the Relaya SDKs for Node, Python, PHP, Go and Java.
Keep reading
Never miss a Stripe event again.
Point your first webhook at Relaya today. Try the Team plan free for 7 days.