You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/App/Exceptions/NgeniusWebhookExceptions.php
+13-3
Original file line number
Diff line number
Diff line change
@@ -10,17 +10,17 @@ class NgeniusWebhookExceptions extends Exception
10
10
{
11
11
publicstaticfunctionmissingSignature()
12
12
{
13
-
returnnewstatic('The request did not contain a header named `X-NGENIUS-Webhook-Signature`.');
13
+
returnnewstatic('The request did not contain a header named `'.config('ngenius-config.webhook-header').'`.');
14
14
}
15
15
16
16
publicstaticfunctioninvalidSignature($signature)
17
17
{
18
-
returnnewstatic("The signature `{$signature}` found in the header named `X-NGENIUS-Webhook-Signature` is invalid. Make sure that the `ngenius.webhookSecret` config key is set to the value you found on the ngenius dashboard. If you are caching your config try running `php artisan clear:cache` to resolve the problem.");
18
+
returnnewstatic("The signature `{$signature}` found in the header named `".config('ngenius-config.webhook-header')."` is invalid. Make sure that the `ngenius.webhookSecret` config key is set to the value you found on the ngenius dashboard. If you are caching your config try running `php artisan clear:cache` to resolve the problem.");
19
19
}
20
20
21
21
publicstaticfunctionsharedSecretNotSet()
22
22
{
23
-
returnnewstatic('The ngenius Commerce webhook shared secret is not set. Make sure that the `ngenius.webhookSecret` config key is set to the value you found on the ngenius dashboard.');
23
+
returnnewstatic('The ngenius Commerce webhook shared secret is not set. Make sure that the `ngenius.webhook-secret` config key is set to the value you found on the ngenius dashboard.');
0 commit comments