Adjustments for paypal webhook and logging when other gateway payloads are encountereD

This commit is contained in:
David Bomba 2025-04-28 08:35:39 +10:00
parent 97b9c84cf7
commit 183f2c0a61
1 changed files with 6 additions and 1 deletions

View File

@ -313,7 +313,12 @@ class PayPalWebhook implements ShouldQueue
//--------------------------------------------------------------------------------------//
private function verifyWebhook(): bool
{
nlog($this->headers);
// nlog($this->headers);
if(!isset($this->headers['paypal-auth-algo'][0])){
nlog(array_merge(["no paypal-auth-algo"], $this->webhook_request));
}
$request = [
'auth_algo' => $this->headers['paypal-auth-algo'][0],
'cert_url' => $this->headers['paypal-cert-url'][0],