[freeside-commits] freeside/httemplate/misc/process payment.cgi, 1.24, 1.25

Ivan,,, ivan at wavetail.420.am
Fri Aug 5 17:50:50 PDT 2011


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

Modified Files:
	payment.cgi 
Log Message:
echeck options to hide routing number and add account owner name, RT#13885

Index: payment.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/misc/process/payment.cgi,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -w -d -r1.24 -r1.25
--- payment.cgi	3 Aug 2011 00:05:01 -0000	1.24
+++ payment.cgi	6 Aug 2011 00:50:48 -0000	1.25
@@ -81,8 +81,13 @@
     $cgi->param('payinfo1') =~ /^(\d+)$/
       or errorpage("illegal account number ". $cgi->param('payinfo1'));
     my $payinfo1 = $1;
+    if ( $conf->exists('echeck-no_routing') ) {
+      $cgi->param('payinfo2') =~ /^(\d*)$/
+        or errorpage("illegal ABA/routing number ". $cgi->param('payinfo2'));
+    } else {
     $cgi->param('payinfo2') =~ /^(\d+)$/
       or errorpage("illegal ABA/routing number ". $cgi->param('payinfo2'));
+    }
     my $payinfo2 = $1;
     $payinfo = $payinfo1. '@'. $payinfo2;
   }



More information about the freeside-commits mailing list