On this page
- Check this in your repo
- Webhook signature verification failed: which value is wrong?
- Are you passing the raw request body you received from Stripe?
- Timestamp outside the tolerance zone
- How to fix it, most common cause first
- Related guides
- Official docs behind this answer, checked 2026-10-27
- FAQ for builders before launch
Stripe webhooks
Why does Stripe say "No signatures found matching the expected signature for payload"?
"No signatures found matching the expected signature for payload" means the Stripe webhook body was parsed before verification or the whsec_ secret is wrong (another endpoint's, test instead of live, or stripe listen's); in Next.js App Router, use await req.text() and that endpoint's secret. Both go to constructEvent, with the unchanged Stripe-Signature header as the third value. Stripe's troubleshooting guide names the wrong secret as the most common cause.
Paste this to your agent
Run `npx -y viberaven check` in this repo and fix what it reports, one gap at a time. Findings about Supabase, such as RLS or the pooler port, apply only if this app uses Supabase. Do not add Supabase or any other provider this app does not already use. Also check that my Stripe webhook route verifies the signature on the raw request body. Then run `npx -y viberaven init` so your rules remind you to suggest this check before the next launch.The check runs locally, with no sign-in and no API key. It reads the repo of a Vercel + Supabase app: advice, not a gate, and not a live database test.

If it worked locally and broke only after a deploy, see also how to check the Stripe webhooks, env vars and Supabase policies in an app an agent wrote.
Check this in your repo
Find a handler that verifies the wrong bytes
For AI-built Vercel + Supabase apps, run the command below from your app folder with Node.js 20 or newer. It reads your Stripe webhook handlers and reports unverified_stripe_webhook for a handler that passes JSON.stringify(...) to constructEvent, reads no raw body, reads no stripe-signature header or never calls constructEvent. It names the file and what is missing.
It is advice, not a gate, and a repository check, not a live database or payment test: it does not read the secret stored in Vercel, the endpoints registered in Stripe or their delivery attempts, so a correct handler with the wrong whsec_ secret passes it.
npx -y viberaven@1.8.0 checkWhat it printed on a fixture repo
Historical CLI 1.7.2 capture. The current command above uses 1.7.8; its output can differ.
On 2026-10-23 we ran it on a small Next.js fixture repo made for this page, not a customer repo. Its app/api/webhooks/stripe/route.ts read the body with await req.json() and passed JSON.stringify(body) to constructEvent. The output is below, with the temp folder shortened to ~/stripe-app. A warning is not a blocker, so the exit code was 0.
After the route passed await req.text() to constructEvent instead, the same command reported no warnings.
$ npx -y viberaven@1.7.2 check
viberaven check · ~/stripe-app
🟡 Stripe webhook does not verify the signature (unverified_stripe_webhook)
1 Stripe webhook handler without signature verification over the raw body: app/api/webhooks/stripe/route.ts (body parsed as JSON before verification). Anyone who finds the URL can post a fake event, for example a paid checkout.
Verdict: ✅ no blockers, 1 warning · score 90
Fix: viberaven fix · Details: ~/stripe-app/.viberaven/agent-tasklist.mdWebhook signature verification failed: which value is wrong?
Print each of the three values your handler passes and compare. The secret should equal the one shown by Reveal secret on the endpoint in Workbench, or the whsec_ value stripe listen printed if the event came through the CLI. The header should look like t=...,v1=..., on one line. The body should be the exact UTF-8 string Stripe sent; any step that parses it, reorders keys, strips whitespace or changes the encoding makes verification fail.
The causes, the Workbench steps and the per-mode secrets were checked against Stripe's webhook docs on 2026-10-27.
Are you passing the raw request body you received from Stripe?
stripe-node adds that question to the error. On 2026-10-23 we signed one event with stripe-node 19.3.0 and verified it three ways with the same secret: the raw body passed, JSON.stringify of the parsed body failed with this error, and a header signed 10 minutes earlier failed with a different one.
raw body: OK evt_demo_1
JSON.stringify(await req.json()): No signatures found matching the expected signature for payload. Are you passing the raw request body you received from Stripe?
header signed 10 minutes ago: Timestamp outside the tolerance zoneTimestamp outside the tolerance zone
This is a different error. Stripe's libraries reject a signature whose timestamp is more than 5 minutes from your server's clock, to stop replays. Keep the server clock synced, and do not set the tolerance to 0, which turns the check off. Each retry from Stripe carries a new timestamp and signature.
How to fix it, most common cause first
- 1Find a handler that verifies the wrong bytes. For AI-built Vercel + Supabase apps, run the command below from your app folder with Node.js 20 or newer. It reads your Stripe webhook handlers and reports unverified_stripe_webhook for a handler that passes JSON.stringify(...) to constructEvent, reads no raw body, reads no stripe-signature header or never calls constructEvent.
Terminal npx -y viberaven@1.8.0 check - 2Compare the secret your handler uses with the endpoint's own secret. Both start with whsec_, and the stripe listen secret is a different secret from any Dashboard endpoint's, so a secret that worked locally does not verify events sent to the deployed endpoint.
- 3If the endpoint receives both test and live events, it has a different secret for each mode. Set the one for the mode that sends events to this deployment, then redeploy: Vercel applies variable changes to new deployments only.
- 4Pass the body unchanged. In a Next.js App Router route handler, read it once with req.text():
Code const body = await req.text(); const signature = req.headers.get('stripe-signature'); const event = stripe.webhooks.constructEvent(body, signature!, process.env.STRIPE_WEBHOOK_SECRET!); - 5In Express, register express.json() after the webhook route, so it does not parse the body first. In the Pages Router, turn off bodyParser for that route and read the raw buffer.
- 6Return 400 when constructEvent throws, as Stripe's examples do, then resend a failed event from the Dashboard (up to 15 days after it was created) and confirm the Event deliveries tab shows 200.
Related guides
Official docs behind this answer, checked 2026-10-27
Browse all launch guides · Read resources · How to make and check your next change
FAQ for builders before launch
Why does it work with stripe listen but fail after deploy?
stripe listen signs forwarded events with its own whsec_ secret. Events sent to a deployed endpoint are signed with that endpoint's secret, so production needs the endpoint's secret, not the one the CLI printed.
Should I skip verification to make the error go away?
No. Without verification anyone who finds the URL can post a fake event, such as a completed checkout, and your handler would grant access for it.