From a3433a7efc03677724cf7c6f0a7715e29b642659 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Sun, 20 Aug 2023 21:52:51 +1000 Subject: [PATCH] Add square webhook tests --- app/PaymentDrivers/SquarePaymentDriver.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/PaymentDrivers/SquarePaymentDriver.php b/app/PaymentDrivers/SquarePaymentDriver.php index 5496a0d1ca00..f122fb998356 100644 --- a/app/PaymentDrivers/SquarePaymentDriver.php +++ b/app/PaymentDrivers/SquarePaymentDriver.php @@ -363,13 +363,11 @@ class SquarePaymentDriver extends BaseDriver public function processWebhookRequest(PaymentWebhookRequest $request) { nlog("square webhook"); - nlog($request->all()); $signature_key = $this->company_gateway->getConfigField('signatureKey'); $notification_url = $this->company_gateway->webhookUrl(); - - // header('Content-Type: text/plain'); - // $webhook_payload = file_get_contents('php://input'); + nlog($signature_key); + nlog($notification_url); $body = ''; $handle = fopen('php://input', 'r');