Integrations · Stripe

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 headerStripe-Signature: t=…,v1=…
AlgorithmHex HMAC-SHA256 of <t>.<raw body>, keyed with the endpoint's signing secret (whsec_…)
FreshnessThe timestamp must be within 5 minutes; older or future-dated requests are rejected
DuplicatesEvent id in the body (evt_…)
Event typetype field of the body, e.g. invoice.paid
Secret to enterThe endpoint's signing secret, whsec_…
A Stripe webhook arriving at Relaya
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

  1. 01
    In Relaya, create a webhook and pick Stripe. Copy its URL.
  2. 02
    In the Stripe Dashboard → Developers → Webhooks → Add endpoint, paste the URL and choose the events to send.
  3. 03
    After saving, reveal the endpoint's signing secret (whsec_…) and enter it in Relaya.
  4. 04
    Add 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

EventWhat you usually do with it
payment_intent.succeededA payment went through.
checkout.session.completedA Checkout session finished: provision what was bought.
invoice.paidA subscription invoice was paid: extend access.
invoice.payment_failedStart dunning before access lapses.
customer.subscription.updatedPlan, quantity or status changed.
charge.dispute.createdA chargeback opened: respond before the deadline.

Included for every Stripe 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.

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.

Never miss a Stripe event again.

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