ERROR: The signature is invalid. #219
-
We are not certain what is really meant as 'signature_header_name' in the config file. This is the likely cause of the 'The signature is invalid' error. How and where do I find the signature_header_name? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
That would depend on the name of the header that is being sent across in the request to your endpoint. If you look in the example, you'll see it is set as 'Signature':
If you look at DefaultSignatureValidator, it pulls the signature from the request headers based on the value you set there:
So in this instance, it will look for $signature = $request->header('Signature'); (If you have a look at the WebhookConfig class, you can see how the properties being passed into it as an array are converted). If you check the headers on the inbound request, you should see if that is what the key for the signature being sent is, and if not, then change the signature_header_name value to whatever the key is in the header. |
Beta Was this translation helpful? Give feedback.
That would depend on the name of the header that is being sent across in the request to your endpoint.
If you look in the example, you'll see it is set as 'Signature':