Invalid Signature #143
Unanswered
thebeautyofcoding
asked this question in
Q&A
Replies: 2 comments 6 replies
-
Add debugging statements to that piece of code. It will probably give you a hint on what is going wrong. |
Beta Was this translation helpful? Give feedback.
6 replies
-
@phaberest Make sure to set webhook secret which starts with |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to implement a subscription payment feature. Using
stripe listen
andstripe trigger
I am trying to test my code. However I am getting a 500 Error. Looking in the error log, I can seeThe signature is invalid spatie\\WebhookClient\\Exceptions\\InvalidWebhookSignature
The isValid function looks like this
class DefaultSignatureValidator implements SignatureValidator
{
public function isValid(Request $request, WebhookConfig $config): bool
{
}
By simply deleting the code in the function and returning
true
, I can avoid the error and everything works. But this is not good practice and might be insecure, or? Why I am getting this error in the first place. Why is the signature invalid? Thanks a lot :)Beta Was this translation helpful? Give feedback.
All reactions