Stripe's troubleshooting guide is direct about this one: if you see "Webhook signature verification failed. Err: No signatures found matching the expected signature for payload", then "at least one of the three parameters you passed is incorrect" (Stripe docs). Those three are the raw body, the Stripe-Signature header, and the endpoint secret.
stripe listen printed). Stripe calls the wrong secret "the most common cause" (source).t=xxx,v1=yyy,v0=zzz (source)."Stripe requires the raw body of the request to perform signature verification... Any manipulation to the raw body of the request causes the verification to fail." (Stripe docs). Re-serialising JSON changes whitespace and key order, so the signature no longer matches.
await request.text() and pass that string to constructEvent. Don't call request.json() first.export const config = { api: { bodyParser: false } }) and read the raw buffer, as Stripe's troubleshooting table says (Stripe docs). Full code: Next.js raw body guide.app.use(express.json()) appears after your webhook route, because Express applies middleware in order (source). Stripe's Express example reads that route's body with express.raw({ type: 'application/json' }) (Stripe example).await req.text() and constructEventAsync with Stripe.createSubtleCryptoProvider(), as in Supabase's example (Supabase docs).Each endpoint has its own whsec_ secret, and "if you use the same endpoint for both test and live API keys, the secret is different for each one" (source). The Stripe CLI's stripe listen also prints its own secret for forwarded events (Stripe CLI docs), which won't verify real Dashboard deliveries. See test vs live secrets.
Stripe's libraries reject events whose signed timestamp is more than 5 minutes from the current time by default (source). A badly skewed server clock causes this; replaying old payloads by hand does too. That error reads "Timestamp outside the tolerance zone"; causes and fixes (and why not to set the tolerance to 0) are in Stripe webhook timestamp outside the tolerance zone.
Turning verification off makes the error go away and lets anyone who knows the URL post a fake checkout.session.completed. Stripe warns that without verification "an attacker could send fake webhook events to your endpoint" (source). See can someone fake a payment?
// Webhook route first, with the raw body
app.post('/webhook', express.raw({ type: 'application/json' }), (req, res) => {
let event;
try {
event = stripe.webhooks.constructEvent(req.body, req.headers['stripe-signature'], process.env.STRIPE_WEBHOOK_SECRET);
} catch (err) {
return res.status(400).send('Webhook Error: ' + err.message);
}
// ...handle event, then:
res.json({ received: true });
});
// JSON parsing for every other route comes after
app.use(express.json());
Paste your webhook URL. WebhookProof sends 3 harmless test requests and tells you whether Stripe can reach it and whether it rejects unsigned events. If it finds a problem, the $9 fix pack gives you the exact copy-paste fix for your stack (refundable for 14 days).
Run the free checkStripe could not verify the event. The usual causes are a body that was parsed or modified before verification, or the wrong whsec_ signing secret for that endpoint and mode.
No. Stripe says the secret is different for test and live, and each endpoint has its own secret. The Stripe CLI also prints its own secret for forwarded events.
Stripe's libraries default to 5 minutes between the signed timestamp and the current time.
Stripe says the most common cause is using the wrong endpoint secret, for example the Stripe CLI secret instead of the Dashboard endpoint secret, or the test secret in live mode.
Stripe webhook not working? Check these 7 things in order · A customer paid but didn't get access. What went wrong? · Stripe webhook failing with a 307 or 308 redirect · Stripe webhook on Supabase Edge Functions: fixing 401s and signature errors
Last reviewed 2026-10-23. WebhookProof is an independent tool, not affiliated with Stripe, Inc.. Quotes are from the linked documentation.