#Paco-webhook
1 messages ยท Page 1 of 1 (latest)
yes !!
The short of it is node modifies the raw body of the webhook naturally so you have to account for that. Take a look at https://github.com/stripe/stripe-node/issues/341 which has various solutions.
yeah i've been on that issue, i'm using the serverless framework and i pretty much tried a ton of things
it's been hours i'm on it ๐
Can you share your webhook code snippet?
Have you seen https://github.com/stripe/stripe-node/issues/356 as well?
I'm not super familiar with serverless but that looks like it talks about some solutions
yes i've seen this one too >< ! let me check again
so yeah, i've tried pretty much everything on it :p
Hi ๐ @scenic sky had to step out so I'm taking over.
It sounds like the serverless environment does some additional parsing of the request body before your function gets access to it.
Unfortunately even truncating a leading whitespace character will cause the webhook signature verification to fail