diff --git a/app/Models/Client.php b/app/Models/Client.php index 7c0d648756de..922beefd2098 100644 --- a/app/Models/Client.php +++ b/app/Models/Client.php @@ -462,7 +462,6 @@ class Client extends BaseModel implements HasLocalePreference $payment_methods = []; foreach ($gateways as $gateway) { - foreach ($gateway->driver($this)->gatewayTypes() as $type) { if (isset($gateway->fees_and_limits) && property_exists($gateway->fees_and_limits, $type)) { if ($this->validGatewayForAmount($gateway->fees_and_limits->{$type}, $amount)) { diff --git a/app/PaymentDrivers/CustomPaymentDriver.php b/app/PaymentDrivers/CustomPaymentDriver.php index 00e111ba4105..3c5d4bad1967 100644 --- a/app/PaymentDrivers/CustomPaymentDriver.php +++ b/app/PaymentDrivers/CustomPaymentDriver.php @@ -12,12 +12,9 @@ namespace App\PaymentDrivers; -use App\Jobs\Util\SystemLogger; use App\Models\ClientGatewayToken; use App\Models\GatewayType; use App\Models\Payment; -use App\Models\PaymentType; -use App\Models\SystemLog; /** * Class CustomPaymentDriver. @@ -49,9 +46,9 @@ class CustomPaymentDriver extends BaseDriver /** * View for displaying custom content of the driver. - * - * @param array $data - * @return mixed + * + * @param array $data + * @return mixed */ public function processPaymentView($data) { @@ -68,8 +65,8 @@ class CustomPaymentDriver extends BaseDriver /** * Processing method for payment. Should never be reached with this driver. - * - * @return mixed + * + * @return mixed */ public function processPaymentResponse($request) {