[freeside-commits] freeside/httemplate/misc payment.cgi,1.27,1.28

Erik Levinson levinse at wavetail.420.am
Fri Jan 21 14:17:33 PST 2011


Update of /home/cvs/cvsroot/freeside/httemplate/misc
In directory wavetail.420.am:/tmp/cvs-serv20947/httemplate/misc

Modified Files:
	payment.cgi 
Log Message:
add (unfinished) credit card surcharge, part 1

Index: payment.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/misc/payment.cgi,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -w -d -r1.27 -r1.28
--- payment.cgi	22 Sep 2010 19:16:19 -0000	1.27
+++ payment.cgi	21 Jan 2011 22:17:30 -0000	1.28
@@ -332,6 +332,10 @@
   $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);
 }
 



More information about the freeside-commits mailing list