#ColonelBudinca - webhook signature

1 messages · Page 1 of 1 (latest)

civic lynx
#

This typically comes from one of two things, the request body not being the actual request body, or the secret key not being the one that you are expecting

#

Can you double check your secret key body here? That raw request body code looks good as far as I can tell

grave kettle
#

it works on localhost

civic lynx
#

But not with one of the webhook endpoints that you set up on your dashboard?

#

Did you update your secret key from the localhost one to your dashboard one

grave kettle
#

when i run stripe listen --forward-to . it works on local

#

is the same key and how can i update it?

civic lynx
#

Click on the webhook that you want to use on that page

grave kettle
civic lynx
#

Then click "Reveal" under "Signing Secret"

grave kettle
#

is not the same

civic lynx
#

Right

#

Each webhook endpoint has its own unique secret

grave kettle
#

ok

civic lynx
#

The local host one should be different than the ones for the endpoints in your dashboard

grave kettle
#

i understand. what should i do ?

civic lynx
#

So you need to update the env config in the version of your code that is running for your heroku app endpoint

grave kettle
#

ok i will try it . thank you

#

it worked! Thank you

civic lynx
#

Awesome!