From c85d36a31cd15e8d06f9dfc7d2591f918d278d89 Mon Sep 17 00:00:00 2001 From: Christopher Burger Date: Fri, 11 May 2018 11:29:36 -0400 Subject: RT# 79737 - Added ability to us a cc surcharge of a flat fee. Conflicts: FS/FS/cust_main/Billing_Realtime.pm httemplate/elements/tr-select-payment_options.html --- httemplate/misc/payment.cgi | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'httemplate/misc/payment.cgi') diff --git a/httemplate/misc/payment.cgi b/httemplate/misc/payment.cgi index 4fa3df773..36ae77bdf 100644 --- a/httemplate/misc/payment.cgi +++ b/httemplate/misc/payment.cgi @@ -22,6 +22,11 @@ ? scalar($conf->config('credit-card-surcharge-percentage', $cust_main->agentnum)) : 0 ), + 'surcharge_flatfee:Q' => + ( $payby eq 'CARD' + ? scalar($conf->config('credit-card-surcharge-flatfee', $cust_main->agentnum)) + : 0 + ), &> % if ( $conf->exists('part_pkg-term_discounts') ) { -- cgit v1.2.1 From 3e9862885750180d31ec85135a8c4e3d6571875a Mon Sep 17 00:00:00 2001 From: Christopher Burger Date: Fri, 11 May 2018 20:43:48 -0400 Subject: RT# 79737 - fixed error in code --- httemplate/misc/payment.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'httemplate/misc/payment.cgi') diff --git a/httemplate/misc/payment.cgi b/httemplate/misc/payment.cgi index 36ae77bdf..44904fba6 100644 --- a/httemplate/misc/payment.cgi +++ b/httemplate/misc/payment.cgi @@ -22,7 +22,7 @@ ? scalar($conf->config('credit-card-surcharge-percentage', $cust_main->agentnum)) : 0 ), - 'surcharge_flatfee:Q' => + 'surcharge_flatfee' => ( $payby eq 'CARD' ? scalar($conf->config('credit-card-surcharge-flatfee', $cust_main->agentnum)) : 0 -- cgit v1.2.1