nextjs-subscription-payments
nextjs-subscription-payments copied to clipboard
Webhook Error: No signatures found matching the expected signature for payload.
How to do ? Installing the Vercel template
https://github.com/vercel/nextjs-subscription-payments
The problem and logs :
Check this: https://github.com/vercel/nextjs-subscription-payments/pull/293/files
im still a tad lost, what do you save the env key as here ? it seems different from the webhook api secret
Run into the same issue while testing the app deployed on Vercel, and that what I did wrong (probably as it's not clearly described in Readme):
- ❌ I used
whsec_xxxthat I saw when I was adding events, but that webhook secret is for Local testing, not for testing on Vercel
So what you need to do is:
- finish selecting event and hit "Add events" button
- get redirected to the Webhook page
- ✅ use
Signin secretfrom the Webhook page as your Production STRIPE_WEBHOOK_SECRET env variable - redeploy the latest build on Vercel in order to apply the updated env variable