#usamarashad-webhooks
1 messages ¡ Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- usamarashad, 7 hours ago, 4 messages
- usamarashad, 8 hours ago, 8 messages
- usamarashad, 11 hours ago, 6 messages
- usamarashad, 12 hours ago, 11 messages
- usamarashad, 3 days ago, 34 messages
raw: {
message: 'Webhook payload must be provided as a string or a Buffer (https://nodejs.org/api/buffer.html) instance representing the raw request body.Payload was provided as a parsed JavaScript object instead. \n' +
'Signature verification is impossible without access to the original signed material. \n' +
I have added the "express.raw({ type: "application/json" })" middleware
Whenever the webhook is forwarded via the stripe.exe I get an error message in the terminal saying "â ď¸ Webhook signature verification failed.
â ď¸ Check the env file and enter the correct webhook secret."
I have made sure that the webhook secret is the same as what the stripe.exe shows
Okay so you are using the Stripe CLI?
yes
Can you test with the sample code we show here: <https://stripe.com/docs/webhooks/quickstart?
Ok.
I tried the code but it still didn'nt work. However a post online recommended to mode the API endpoint before the line "app.use(express.json());"
I tried it and it seems to work fine now.
Okay great đ I'm happy to hear you got it working đ
Thanks for your help.
Happy to do it