#Little_seven

1 messages · Page 1 of 1 (latest)

small jasperBOT
sturdy bison
#

Did the code work before?

desert nimbus
#

yes

#

been using it for months

sturdy bison
#

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?

desert nimbus
#

used php library stripe-php-9.6.0

sturdy bison
desert nimbus
#

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

sturdy bison
#

constructEvent is the only function that validates the signature. It will return the event if the validation is successful, else error will be thrown

#

If $endpoint_secret is different from the one in Dashboard, signature validation will fail

desert nimbus
#

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

sturdy bison
#

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

desert nimbus
#

okay, will test more again with this.

thank you for your assitance.