#dino_pephanis-webhook-signatures
1 messages ยท Page 1 of 1 (latest)
Hello
I would recommend double checking that you're using the correct signing secret for the webhook endpoint that you're using.
If that checks out, then I would recommend looking at your code to see if it is doing anything to alter the request body before passing it into the function to construct the event.
Our function is expecting the original unaltered request body, any change will impact the hash calculation.
does the $endpoint_secret in the code have to equal Signing secret in the dasboard
Yes, that is correct
changed it but still get SignatureVerificationException
event id evt_3LZwpm2aLST0XUg81grHCX9D
Thank you for the ID, but we won't have any insight into the signature verification results as that process all happens locally. How are you passing the body of the request to the event construction function?
we use Laravel so...
$payload = $request->all(); to get the posted data
$sig_header = $_SERVER['HTTP_STRIPE_SIGNATURE'];
$payload, $sig_header, $endpoint_secret
);```
$endpoint_secret copied from Signing secret in control panel
Do you know what that all() function is doing? (I'm trying to find it on the side, but if you could point me to the ref for that I would appreciate it)
just asked my colleague $request->all() get key value pairs on a post from a form. changed it to $request->getContent() and it works. Sorry to trouble you
No worries, I'm glad you were able to get to the bottom of it!
thanks, enjoy the rest of yoru day
Hope you do the same ๐