#cent-webhook-signature
1 messages · Page 1 of 1 (latest)
cent-webhook-signature
Hey @hexed jacinth do you have a bit more details on your integration?
app.post('/webhook', express.raw({ type: 'application/json' }), (request, response) => {
const sig = request.headers['stripe-signature'];
So the most common issue is using the wrong webhook endpoint signing secret. For example if you use the CLI, it has its own secret that you need to use.
If that's not the issue, the second most common issue is that you don't use the raw body of the request. This is required for signature verification to work and it is unfortunately extremely tough with Node.js
In that case I recommend carefully reading through https://github.com/stripe/stripe-node/issues/356 and https://github.com/stripe/stripe-node/issues/341 to see if one of the numerous potential solutions work for you
that means the code you wrote has a bug and gave no content to the method