From 365d4b9c21f398de3751c355da9d309377640e62 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Fri, 5 Jan 2024 17:33:11 +1100 Subject: [PATCH] Fixes for authorizing payment methods --- app/Models/Client.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/Models/Client.php b/app/Models/Client.php index 8c13c850244f..a72dd3344c29 100644 --- a/app/Models/Client.php +++ b/app/Models/Client.php @@ -545,6 +545,9 @@ class Client extends BaseModel implements HasLocalePreference $cg = CompanyGateway::query()->find($pm['company_gateway_id']); + if($cg->gateway_key == '80af24a6a691230bbec33e930ab40666') //ensure we don't attempt to authorize paypal platform - yet. + continue; + if ($cg && is_object($cg->fees_and_limits) && ! property_exists($cg->fees_and_limits, strval(GatewayType::CREDIT_CARD))) { $fees_and_limits = $cg->fees_and_limits; $fees_and_limits->{GatewayType::CREDIT_CARD} = new FeesAndLimits;