#omar-webhook
1 messages · Page 1 of 1 (latest)
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
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?
no
you use the secret from your dashboard
you probably didn't change the configuration when you deployed the code to the server
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 .
of corse i do
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
do you have the ID evt_xxx of an event that is failing?
Thank you so much