From f45c476d5b55a61ba3d701c22a0f36465d86f8ad Mon Sep 17 00:00:00 2001 From: David Bomba Date: Thu, 22 Aug 2024 08:14:28 +1000 Subject: [PATCH] Fixes for pp cc --- app/Services/Client/PaymentMethod.php | 7 ------- 1 file changed, 7 deletions(-) diff --git a/app/Services/Client/PaymentMethod.php b/app/Services/Client/PaymentMethod.php index 30de02b537..fd83c36d23 100644 --- a/app/Services/Client/PaymentMethod.php +++ b/app/Services/Client/PaymentMethod.php @@ -185,13 +185,6 @@ class PaymentMethod } if (($this->client->getSetting('use_credits_payment') == 'option' || $this->client->getSetting('use_credits_payment') == 'always') && $this->client->service()->getCreditBalance() > 0) { - // Show credits as only payment option if both statements are true. //?this does not really make sense as it does nothing.... - // if ( - // $this->client->service()->getCreditBalance() > $this->amount - // && $this->client->getSetting('use_credits_payment') == 'always') { - // $payment_urls = []; - // } - $this->payment_urls[] = [ 'label' => ctrans('texts.apply_credit'), 'company_gateway_id' => CompanyGateway::GATEWAY_CREDIT,