From 4727d0cea75f772ec37f9d783571b9998adfd8a0 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Sun, 16 May 2021 17:07:07 +1000 Subject: [PATCH] Fixes for custom payment methods - and their fees and limits object --- app/Services/Client/PaymentMethod.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Services/Client/PaymentMethod.php b/app/Services/Client/PaymentMethod.php index 2c2a6f899f3e..571c3dd61b89 100644 --- a/app/Services/Client/PaymentMethod.php +++ b/app/Services/Client/PaymentMethod.php @@ -168,7 +168,7 @@ class PaymentMethod if (isset($gateway->fees_and_limits) && is_object($gateway->fees_and_limits) && property_exists($gateway->fees_and_limits, GatewayType::CREDIT_CARD)) { if ($this->validGatewayForAmount($gateway->fees_and_limits->{GatewayType::CREDIT_CARD}, $this->amount)) - $this->payment_methods[] = [$gateway->id => GatewayType::CREDIT_CARD]; + $this->payment_methods[] = [$gateway->id => $type]; } else { $this->payment_methods[] = [$gateway->id => NULL];