Return early if webhook payload is not appropriate

This commit is contained in:
David Bomba 2025-05-04 12:37:11 +10:00
parent 7506bb790e
commit e732fd0a1e
1 changed files with 2 additions and 3 deletions

View File

@ -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],