#mhiggie-node-question
1 messages · Page 1 of 1 (latest)
Hey @ornate lily! Happy to try and help. Feel free to also just ask your question upfront!
will do
okay so my webhook endpoint is being hit
all is well, but idk why it is failing as
[0] ⚠️ Webhook signature verification failed. stripe is not defined
ahh damn fixed it
sry
first time making these webhooks
okay separate question for ya
when a payment is successful my user is redirected to a return_url
all good but in the url there's a lot of info like the following, is this sensitive info that should be hidden in some way?
that is added by Stripe so you can't hide it and it's mostly fine
could be many things
90% of the time: wrong webhook secret
9% of the time: you're not getting the raw payload, extremely common with Node.js: https://github.com/stripe/stripe-node/issues/356 has dozens of potential solutions
yeah looks like im missing this
express.raw({type: 'application/json'})
from my route
yeah it's hard to say because it's dependent on many other factors that I never understand
it's like magic, devs always go "yeah the 12 first attempts didn't work but the 13th worked like a charm" 😅
this is my webhook secret, correct?
i pop it in top of the same file my route lives in
here's my route
my req.headers
I can't really do anything with pictures
But really I showed you the potential root causes and now you have to debug that
The secret from the CLI is the right one though
definitely a raw payload issue
that's what trips up a lot of devs so if you use that one it's not the problem and it will be that damn raw payload 😦