[freeside-commits] freeside/httemplate/misc/process payment.cgi, 1.22.4.5, 1.22.4.6

Ivan,,, ivan at wavetail.420.am
Fri Oct 21 09:30:05 PDT 2011


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

Modified Files:
      Tag: FREESIDE_2_3_BRANCH
	payment.cgi 
Log Message:
add bank branch to one-time payments, RT#14859

Index: payment.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/misc/process/payment.cgi,v
retrieving revision 1.22.4.5
retrieving revision 1.22.4.6
diff -u -w -d -r1.22.4.5 -r1.22.4.6
--- payment.cgi	17 Oct 2011 20:56:13 -0000	1.22.4.5
+++ payment.cgi	21 Oct 2011 16:30:03 -0000	1.22.4.6
@@ -81,11 +81,16 @@
     $payinfo = $cust_main->payinfo;
   } else {
     $cgi->param('payinfo1') =~ /^(\d+)$/
-      or errorpage("illegal account number ". $cgi->param('payinfo1'));
+      or errorpage("Illegal account number ". $cgi->param('payinfo1'));
     my $payinfo1 = $1;
     $cgi->param('payinfo2') =~ /^(\d+)$/
-      or errorpage("illegal ABA/routing number ". $cgi->param('payinfo2'));
+      or errorpage("Illegal ABA/routing number ". $cgi->param('payinfo2'));
     my $payinfo2 = $1;
+    if ( $conf->exists('cust_main-require-bank-branch') ) {
+      $cgi->param('payinfo3') =~ /^(\d+)$/
+        or errorpage("Illegal branch number ". $cgi->param('payinfo2'));
+      $payinfo2 = "$1.$payinfo2";
+    }
     $payinfo = $payinfo1. '@'. $payinfo2;
   }
 



More information about the freeside-commits mailing list