[freeside-commits] freeside/httemplate/misc/process payment.cgi, 1.22.4.2, 1.22.4.3

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


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

Modified Files:
      Tag: FREESIDE_2_3_BRANCH
	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.22.4.2
retrieving revision 1.22.4.3
diff -u -w -d -r1.22.4.2 -r1.22.4.3
--- payment.cgi	3 Aug 2011 00:05:03 -0000	1.22.4.2
+++ payment.cgi	6 Aug 2011 00:50:59 -0000	1.22.4.3
@@ -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