Open the free webhook tester →
See exactly what Stripe sends to your endpoint: headers, raw JSON body and whether the Stripe-Signature is valid. No account, no code, no tunnel.
Test Stripe webhooks in 4 steps
- Open the webhook tester and copy your URL.
- In the Stripe Dashboard (test mode) go to Developers → Webhooks, add an endpoint with that URL and pick the events you need.
- Trigger an event: pay with a Stripe test card, or press Send test event in the endpoint page.
- Open the request in the tester, paste the endpoint's signing secret (
whsec_…) and press Verify signature.
No Stripe account at hand? Use Send a signed test event → Stripe in the tester: it sends a realistic event with a valid signature for any secret you enter.
How Stripe signs webhooks
| Header | Stripe-Signature: t=1700000000,v1=5257a8… |
|---|---|
| Signed string | {t}.{raw body} |
| Algorithm | HMAC-SHA256 with the endpoint secret whsec_…, hex |
| Replay protection | reject old timestamps (Stripe's libraries use 5 minutes) |
// Node.js with the official library — pass the RAW body
const event = stripe.webhooks.constructEvent(rawBody, req.headers['stripe-signature'], process.env.STRIPE_WEBHOOK_SECRET);
Events worth testing
payment_intent.succeededandpayment_intent.payment_failed— the main payment result.checkout.session.completed— fulfil Checkout orders here, not on the success page.charge.refundedandcharge.dispute.created— refunds and chargebacks.invoice.paid,invoice.payment_failed,customer.subscription.deleted— subscriptions.
Common problems
- “No signatures found matching the expected signature”: the body was parsed or re-encoded before verification, or you use the secret of another endpoint (the Stripe CLI prints its own
whsec_…). - Duplicates: Stripe retries failed events for up to three days in live mode — store
event.idand skip repeats. - Timeouts: answer
2xxfirst, do the work in a background job. - Order: events can arrive out of order; re-fetch the object if you need its latest state.
To forward Stripe events to your own machine, press Replay on a captured request, or see debugging webhooks on localhost.
Other providers: Adyen · Checkout.com · GitHub · Shopify