#usamarashad-webhooks

1 messages ¡ Page 1 of 1 (latest)

fervent steepleBOT
#

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.

clever sun
#

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' +

wooden osprey
#

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

clever sun
#

Okay so you are using the Stripe CLI?

wooden osprey
#

yes

clever sun
wooden osprey
#

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.

clever sun
#

Okay great 🎉 I'm happy to hear you got it working 🙂

wooden osprey
#

Thanks for your help.

clever sun
#

Happy to do it