#Little_seven
1 messages · Page 1 of 1 (latest)
Did the code work before?
The signatures for CLI and webhook endpoints set on the dashboard are different. Do you listen to the events on CLI or webhook endpoints set on the Dashboard?
Not sure with the CLI.
But I followed this docs.
https://stripe.com/docs/webhooks/signatures
used php library stripe-php-9.6.0
If the code worked before, it's likely that the Webhook secret set in your code is incorrect or modified. I'd recommend double checking the Webhook secret set in the Dashboard with your code here: https://dashboard.stripe.com/test/logs?object=we_1Mmh4qH84pLmeTvG5tGRldx5
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
is there any alternative php code for checking signature instead of using \Stripe\Webhook::constructEvent($payload, $sig_header, $endpoint_secret);
like using instead this.
$stripe-webhook->constructEvent(....);
unable to find this kind of code in stripe api docs
we checkd the https://dashboard.stripe.com/test/logs?object=we_1Mmh4qH84pLmeTvG5tGRldx5
in doesnt record in logs the event of checking of signature.
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
constructEvent is the only function that validates the signature. It will return the event if the validation is successful, else error will be thrown
https://dashboard.stripe.com/test/logs?object=we_1Mmh4qH84pLmeTvG5tGRldx5 is for you to double check whether the Webhook secret in the Dashboard is the same as the one you set in the code with $endpoint_secret
If $endpoint_secret is different from the one in Dashboard, signature validation will fail
I only have secret key and publishable key,
no endpoint.
where can I find it?
this is the endpoint_secret, right?
yes, we doubled check
Yes, this is the endpoint secret
One common issue we see that there might be additional space or tab added to the end of Webhook secret in the code which will result signature validation failure
okay, will test more again with this.
thank you for your assitance.