X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fmisc%2Fpayment.cgi;h=093494a0675459328caa5d88d26cb412191ece6a;hb=8688a1fe1b157c1061e928823d81ba1b7f34cde8;hp=36e8255f1d1fa938ffd7ef86d52b3ee3aae1ad98;hpb=f1802f4b19c6741b50007b56bbac13af61012fe5;p=freeside.git diff --git a/httemplate/misc/payment.cgi b/httemplate/misc/payment.cgi index 36e8255f1..093494a06 100644 --- a/httemplate/misc/payment.cgi +++ b/httemplate/misc/payment.cgi @@ -1,4 +1,4 @@ -<& /elements/header.html, emt("Process [_1] payment",$type{$payby}) &> +<& /elements/header.html, mt("Process [_1] payment",$type{$payby}) &> <& /elements/small_custview.html, $cust_main, '', '', popurl(2) . "view/cust_main.cgi" &>
@@ -14,6 +14,7 @@ - + - + +% if ( $conf->config('echeck-country') eq 'CA' ) { + + + + +% } @@ -222,7 +240,7 @@ @@ -265,8 +283,8 @@ die "access denied" unless $FS::CurrentUser::CurrentUser->access_right('Process payment'); -my %type = ( 'CARD' => emt('credit card'), - 'CHEK' => emt('electronic check (ACH)'), +my %type = ( 'CARD' => 'credit card', + 'CHEK' => 'electronic check (ACH)', ); $cgi->param('payby') =~ /^(CARD|CHEK)$/
<% $money_char %> $custnum, - 'cgi' => $cgi + 'amount_id' => 'amount', &> % if ( $payby eq 'CARD' ) { @@ -131,13 +132,15 @@ % } elsif ( $payby eq 'CHEK' ) { % -% my( $payinfo1, $payinfo2, $payname, $ss, $paytype, $paystate, +% my( $account, $aba, $branch, $payname, $ss, $paytype, $paystate, % $stateid, $stateid_state ) -% = ( '', '', '', '', '', '', '', '' ); +% = ( '', '', '', '', '', '', '', '', '' ); % if ( $cust_main->payby =~ /^(CHEK|DCHK)$/ ) { -% $cust_main->paymask =~ /^([\dx]+)\@([\dx]+)$/i +% $cust_main->paymask =~ /^([\dx]+)\@([\d\.x]*)$/i % or die "unparsable payinfo ". $cust_main->payinfo; -% ($payinfo1, $payinfo2) = ($1, $2); +% ($account, $aba) = ($1, $2); +% ($branch,$aba) = split('\.',$aba) +% if $conf->config('echeck-country') eq 'CA'; % $payname = $cust_main->payname; % $ss = $cust_main->ss; % $paytype = $cust_main->getfield('paytype'); @@ -145,22 +148,37 @@ % $stateid = $cust_main->getfield('stateid'); % $stateid_state = $cust_main->getfield('stateid_state'); % } +% +% #false laziness w/{edit,view}/cust_main/billing.html +% my $routing_label = $conf->config('echeck-country') eq 'US' +% ? 'ABA/Routing number' +% : 'Routing number'; +% my $routing_size = $conf->config('echeck-country') eq 'CA' ? 4 : 10; +% my $routing_maxlength = $conf->config('echeck-country') eq 'CA' ? 3 : 9;
<% mt('Account number') |h %> <% mt('Type') |h %>
<% mt('ABA/Routing number') |h %><% mt($routing_label) |h %> - + (<% mt('help') |h %>)
<% mt('Branch number') |h %> + +
<% mt('Bank name') |h %>
- <% mt('Remember this informatio') |h %> + <% mt('Remember this information') |h %>