From 20a10242931eaf6ee17d3cdd0857a99449f9cfbe Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Thu, 21 May 2015 13:07:23 -0700 Subject: [PATCH] don't apply credit-card-surcharge-percentage to ACH, RT#34815 --- httemplate/misc/payment.cgi | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/httemplate/misc/payment.cgi b/httemplate/misc/payment.cgi index 12fca2086..a48aa0120 100644 --- a/httemplate/misc/payment.cgi +++ b/httemplate/misc/payment.cgi @@ -17,7 +17,11 @@ 'process-display' => scalar($conf->config('manual_process-display')), 'process-skip_first' => $conf->exists('manual_process-skip_first'), 'num_payments' => scalar($cust_main->cust_pay), - 'surcharge_percentage' => scalar($conf->config('credit-card-surcharge-percentage')), + 'surcharge_percentage' => + ( $payby eq 'CARD' + ? scalar($conf->config('credit-card-surcharge-percentage')) + : 0 + ), &> % if ( $conf->exists('part_pkg-term_discounts') ) { -- 2.11.0