X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fmisc%2Fpayment.cgi;h=aec68af455c12f97daa0ee278a155812a9fd6223;hp=bcab68aae20b0cc64563fba1b11b26439fb2e861;hb=0f7643c1af2d909e0c3172e5bec0c01855fca1b9;hpb=fd4aeda41e6b9318af8e367d761bb2b2c0a402f9 diff --git a/httemplate/misc/payment.cgi b/httemplate/misc/payment.cgi index bcab68aae..aec68af45 100644 --- a/httemplate/misc/payment.cgi +++ b/httemplate/misc/payment.cgi @@ -332,6 +332,10 @@ if ( $balance > 0 ) { $amount = $balance; $amount += $fee if $fee && $fee_display eq 'subtract'; + + my $cc_surcharge_pct = $conf->config('credit-card-surcharge-percentage'); + $amount += $amount * $cc_surcharge_pct/100 if $cc_surcharge_pct > 0; + $amount = sprintf("%.2f", $amount); }