#cent-webhook-signature

1 messages · Page 1 of 1 (latest)

modest marlinBOT
pallid sapphire
#

cent-webhook-signature

#

Hey @hexed jacinth do you have a bit more details on your integration?

hexed jacinth
#

app.post('/webhook', express.raw({ type: 'application/json' }), (request, response) => {
const sig = request.headers['stripe-signature'];

pallid sapphire
#

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.

hexed jacinth
#

Webhook Error: No webhook payload was provided.

#

now I'm getting this

pallid sapphire
#

that means the code you wrote has a bug and gave no content to the method

hexed jacinth
#

hmm

#

thanks

#

it's fixed now