#dingkai031
1 messages · Page 1 of 1 (latest)
evt_1MP0dzBBuNcFsmgMqYaHgIPS
this is the evt id
So Stripe correctly sent the event to your server, but your server responded with an error. So you need to debug your code.
Getting a SignatureVerificationError is quite common. It usually comes from two potential errors:
- You are using the wrong webhook secret. So please double check you are using the correct one. It should look like whsec_xxx and match the one displayed in your dashboard
- The payload you pass in the constructEvent function is not the raw payload. So you need to ensure that you get the raw body of the HTTP request that Stripe sent you, without any interference by your code or framework in the middle.
To debug this you'll need to add logging to log every value you pass to constructEvent (the payload, the secret, and the signature header) and then we can try to have a look at what part is wrong
ah yes, it works now.. the problem is with a wrong secret key. Thank you for the assistance!