I need to access the raw body of the webhook request from Stripe in my Nest.js application.
Following this example, I added the below to the module which has a controlle
Today,
as I am using NestJS and Stripe
I installed body-parser (npm), then in the main.ts, just add
app.use('/payment/hooks', bodyParser.raw({type: 'application/json'}));
and it will be restricted to this route ! no overload