Return early if webhook payload is not appropriate
This commit is contained in:
parent
7506bb790e
commit
e732fd0a1e
|
|
@ -315,9 +315,8 @@ class PayPalWebhook implements ShouldQueue
|
||||||
{
|
{
|
||||||
// nlog($this->headers);
|
// nlog($this->headers);
|
||||||
|
|
||||||
if(!isset($this->headers['paypal-auth-algo'][0])){
|
if(!isset($this->headers['paypal-auth-algo'][0]))
|
||||||
nlog(array_merge(["no paypal-auth-algo"], $this->webhook_request));
|
return false;
|
||||||
}
|
|
||||||
|
|
||||||
$request = [
|
$request = [
|
||||||
'auth_algo' => $this->headers['paypal-auth-algo'][0],
|
'auth_algo' => $this->headers['paypal-auth-algo'][0],
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue