library · inferred from evidence
bodyParser.json
A middleware function from bodyParser for parsing JSON request bodies.
- Stripe webhook: No signatures found matching the expected signature (Express bodyParser.json)
Mount a raw body parser on the webhook route before any JSON parsing: app.use('/webhooks/stripe', bodyParser.raw({type: 'application/json'})) (or express.raw({type:'application/json'})), then pass the raw buffer to stripe.webhooks.construct