Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webhook Error: No signatures found matching the expected signature for payload. #285

Open
KazeroG opened this issue Jan 20, 2024 · 3 comments

Comments

@KazeroG
Copy link

KazeroG commented Jan 20, 2024

How to do ?
Installing the Vercel template

https://github.com/vercel/nextjs-subscription-payments

The problem and logs :
f7b7351d-6708-4324-bb77-3492a310837c

@tonoli
Copy link
Contributor

tonoli commented Feb 13, 2024

@ebowwa
Copy link

ebowwa commented Mar 6, 2024

im still a tad lost, what do you save the env key as here ? it seems different from the webhook api secret

@Bych
Copy link

Bych commented Apr 4, 2024

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_xxx that I saw when I was adding events, but that webhook secret is for Local testing, not for testing on Vercel
    2024-04-04_10-59-31

So what you need to do is:

  • finish selecting event and hit "Add events" button
  • get redirected to the Webhook page
  • ✅ use Signin secret from the Webhook page as your Production STRIPE_WEBHOOK_SECRET env variable
    2024-04-04_11-00-29
  • redeploy the latest build on Vercel in order to apply the updated env variable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants