The error looks like this:
Stripe\Exception\SignatureVerificationException: No signatures found matching the expected signature for payload
Enter fullscreen mode
Exit fullscreen mode
Stripe signs every webhook with a secret. Your app rebuilds that signature from the request body and compares. If one byte of the body or the secret differs, the check fails. These are the causes I see most, in the order I check them.
1. Wrong signing secret
Each webhook endpoint has its own secret that starts with whsec_ . Three common mix-ups:
The secret from the Stripe CLI ( stripe listen ) is in production .env . The CLI secret only works for events forwarded by the CLI.
The test mode secret is used with live mode events, or the other way round.
Two endpoints exist in the Dashboard and the secret belongs to the other one.
Fix: Dashboard, Developers, Webhooks, open the exact endpoint URL that is failing, reveal its signing secret and copy it to STRIPE_WEBHOOK_SECRET .
2.…