#mindsetinmeta
1 messages · Page 1 of 1 (latest)
Hi
What you mean exactly by "the management console" ?
I would like to see if any middleware we are using is tweaking the raw body of the Stripe request.
You should debug your integration and see what middleware you are using, you can do manual verification using following these steps:
https://stripe.com/docs/webhooks/signatures#verify-manually
Or simply download this sample and test webhook signature verification:
https://stripe.com/docs/webhooks/quickstart?lang=node
how do I get the raw body of the webhook request?
I want to see that and compare with what we get.
At the entry of your webhook endpoint. Depending on your programming language/framework, but here what you should do when using NodeJs:
https://github.com/stripe/stripe-node/blob/master/examples/webhook-signing/express/main.ts#L43
can I view the code of constructEvent?
And what's the raw body got passed in to constructEvent? Can I see that?
You can use this sample Express and log the raw body before this line:
https://github.com/stripe/stripe-node/blob/master/examples/webhook-signing/express/main.ts#L43