return new static('The request did not contain a header named `Stripe-Signature`');
13
}
14
15
public static function invalidSignature($signature)
16
{
17
return new static("The signature `{$signature}` found in the header named `Stripe-Signature` is invalid. Make sure that the `services.stripe.webhook_signing_secret` config key is set to the value you found on the Stripe dashboard. If you are caching your config try running `php artisan clear:cache` to resolve the problem.");
18
}
19
20
public static function signingSecretNotSet()
21
{
22
return new static('The Stripe webhook signing secret is not set. Make sure that the `services.stripe.webhook_signing_secret` config key is set to the value you found on the Stripe dashboard.');
23
}
24
25
public static function jobClassDoesNotExist(string $jobClass, StripeWebhookCall $webhookCall)
26
{
27
return new static("Could not process webhook id `{$webhookCall->id}` of type `{$webhookCall->type} because the configured jobclass `$jobClass` does not exist");
28
}
29
30
public static function missingType(StripeWebhookCall $webhookCall)
31
{
32
return new static("Webhook call id `{$webhookCall->id}` did not contain a type. Valid Stripe webhook calls should always contain a type.");
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.