From 98e314b6c0d6a16b8c6beac844ca4c1922723036 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Fri, 26 Mar 2021 19:18:25 +1100 Subject: [PATCH] Fixes for calculating the correct gateway fee depending on the payment method --- 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 84b214b2fefc..b235aad129f2 100644 --- a/app/Services/Client/PaymentMethod.php +++ b/app/Services/Client/PaymentMethod.php @@ -186,7 +186,7 @@ class PaymentMethod foreach ($child_array as $gateway_id => $gateway_type_id) { $gateway = CompanyGateway::find($gateway_id); - $fee_label = $gateway->calcGatewayFeeLabel($this->amount, $this->client); + $fee_label = $gateway->calcGatewayFeeLabel($this->amount, $this->client, $gateway_type_id); if(!$gateway_type_id){