summaryrefslogtreecommitdiff
path: root/httemplate/misc/process
diff options
context:
space:
mode:
authorivan <ivan>2011-08-06 00:50:59 +0000
committerivan <ivan>2011-08-06 00:50:59 +0000
commit3d62ec9362d0b22c17a17da6197f8b2fc219a54e (patch)
tree9684516ddfc7bb4d3270983a4e58d86aa478e1a3 /httemplate/misc/process
parent17e269dff1e784069ab2161a3feb4676b781845f (diff)
echeck options to hide routing number and add account owner name, RT#13885
Diffstat (limited to 'httemplate/misc/process')
-rw-r--r--httemplate/misc/process/payment.cgi9
1 files changed, 7 insertions, 2 deletions
diff --git a/httemplate/misc/process/payment.cgi b/httemplate/misc/process/payment.cgi
index 5fa57e448..fb6a41bd3 100644
--- a/httemplate/misc/process/payment.cgi
+++ b/httemplate/misc/process/payment.cgi
@@ -81,8 +81,13 @@ if ( $payby eq 'CHEK' ) {
$cgi->param('payinfo1') =~ /^(\d+)$/
or errorpage("illegal account number ". $cgi->param('payinfo1'));
my $payinfo1 = $1;
- $cgi->param('payinfo2') =~ /^(\d+)$/
- or errorpage("illegal ABA/routing number ". $cgi->param('payinfo2'));
+ 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;
}