From 03b3170b8c6c95217230b27e8a67ba48c2254c01 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Sun, 20 Aug 2023 21:55:37 +1000 Subject: [PATCH] cleanup --- app/PaymentDrivers/Square/SquareWebhook.php | 43 --------------------- app/PaymentDrivers/SquarePaymentDriver.php | 2 - 2 files changed, 45 deletions(-) diff --git a/app/PaymentDrivers/Square/SquareWebhook.php b/app/PaymentDrivers/Square/SquareWebhook.php index ea2e812ca730..ebe46b0af4ee 100644 --- a/app/PaymentDrivers/Square/SquareWebhook.php +++ b/app/PaymentDrivers/Square/SquareWebhook.php @@ -56,48 +56,6 @@ class SquareWebhook implements ShouldQueue { } - -/** - * { - * "merchant_id": "6SSW7HV8K2ST5", - * "type": "payment.created", - * "event_id": "13b867cf-db3d-4b1c-90b6-2f32a9d78124", - * "created_at": "2020-02-06T21:27:30.792Z", - * "data": { - * "type": "payment", - * "id": "KkAkhdMsgzn59SM8A89WgKwekxLZY", - * "object": { - * "payment": { - * "id": "hYy9pRFVxpDsO1FB05SunFWUe9JZY", - * "created_at": "2020-11-22T21:16:51.086Z", - * "updated_at": "2020-11-22T21:16:51.198Z", - * "amount_money": { - * "amount": 100, - * "currency": "USD" - * }, - * "status": "APPROVED", - * "delay_duration": "PT168H", - * "source_type": "CARD", - * "card_details": { - * "status": "AUTHORIZED", - * "card": { - * "card_brand": "MASTERCARD", - * "last_4": "9029", - * "exp_month": 11, - * "exp_year": 2022, - * "fingerprint": "sq-1-Tvruf3vPQxlvI6n0IcKYfBukrcv6IqWr8UyBdViWXU2yzGn5VMJvrsHMKpINMhPmVg", - * "card_type": "CREDIT", - * "prepaid_type": "NOT_PREPAID", - * "bin": "540988" - * }, - * "entry_method": "KEYED", - * "cvv_status": "CVV_ACCEPTED", - * "avs_status": "AVS_ACCEPTED", - * "statement_description": "SQ *DEFAULT TEST ACCOUNT", - * "card_payment_timeline": { - * "authorized_at": "2020-11-22T21:16:51.198Z" - * - */ public function handle() { nlog("Square Webhook"); @@ -155,7 +113,6 @@ class SquareWebhook implements ShouldQueue $payment->save(); } - //toggle pending to completed. } private function retrieveOrCreatePayment(?string $payment_reference, int $payment_status): ?\App\Models\Payment diff --git a/app/PaymentDrivers/SquarePaymentDriver.php b/app/PaymentDrivers/SquarePaymentDriver.php index f122fb998356..9a14358be634 100644 --- a/app/PaymentDrivers/SquarePaymentDriver.php +++ b/app/PaymentDrivers/SquarePaymentDriver.php @@ -366,8 +366,6 @@ class SquarePaymentDriver extends BaseDriver $signature_key = $this->company_gateway->getConfigField('signatureKey'); $notification_url = $this->company_gateway->webhookUrl(); - nlog($signature_key); - nlog($notification_url); $body = ''; $handle = fopen('php://input', 'r');