#omar-webhook

1 messages · Page 1 of 1 (latest)

quiet glade
#

I'd start by logging all the variables like the $payload and $endpoint_secret to be sure they are not null

#

also make sure you're using the right secret for the endpoint

dreamy kernel
#

i have logged it and its not null

#

by the way its working fine from localhost

#

but not in live server

#

in live server shall i use Publishable key instead of Secret key?

quiet glade
#

no

#

you use the secret from your dashboard

#

you probably didn't change the configuration when you deployed the code to the server

dreamy kernel
#

yes thats right

#

but its not working

quiet glade
#

on https://dashboard.stripe.com/webhooks you would find the URL that you're using for the live server, and take the secret from that page, and configure the code running on the live server to use that .

dreamy kernel
#

i have already switched to production mode and all the configration has changed

#

also i have create a pre production server and create a webhook for it with same result

quiet glade
#

do you have the ID evt_xxx of an event that is failing?

dreamy kernel
#

Thank you so much