From 233a32641444792386e4eb2d44acd082f535672c Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Sun, 10 Jun 2018 11:34:53 +0300 Subject: [PATCH] Customer Portal > Pay Now Button > Credit Card fee is incorrect #2105 --- app/Ninja/Presenters/InvoicePresenter.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/Ninja/Presenters/InvoicePresenter.php b/app/Ninja/Presenters/InvoicePresenter.php index e3c0177c77..8ead84eea7 100644 --- a/app/Ninja/Presenters/InvoicePresenter.php +++ b/app/Ninja/Presenters/InvoicePresenter.php @@ -318,6 +318,10 @@ class InvoicePresenter extends EntityPresenter return ''; } + if ($invoice->getGatewayFeeItem()) { + return ''; + } + $fee = $invoice->calcGatewayFee($gatewayTypeId, true); $fee = $account->formatMoney($fee, $invoice->client);