[freeside-commits] freeside/httemplate/misc payment.cgi,1.12,1.13
Jeff Finucane,420,,
jeff at wavetail.420.am
Fri Apr 6 16:57:37 PDT 2007
Update of /home/cvs/cvsroot/freeside/httemplate/misc
In directory wavetail:/tmp/cvs-serv29680/httemplate/misc
Modified Files:
payment.cgi
Log Message:
integrate new echeck fields into freeside backend payment processing
Index: payment.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/misc/payment.cgi,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- payment.cgi 17 Jan 2007 23:27:17 -0000 1.12
+++ payment.cgi 6 Apr 2007 23:57:35 -0000 1.13
@@ -151,13 +151,19 @@
</TD>
</TR>
% } elsif ( $payby eq 'CHEK' ) {
-% my( $payinfo1, $payinfo2, $payname, $ss ) = ( '', '', '', '' );
+% my( $payinfo1, $payinfo2, $payname, $ss, $paytype, $paystate,
+% $stateid, $stateid_state )
+% = ( '', '', '', '', '', '', '', '' );
% if ( $cust_main->payby =~ /^(CHEK|DCHK)$/ ) {
% $cust_main->paymask =~ /^([\dx]+)\@([\dx]+)$/i
% or die "unparsable payinfo ". $cust_main->payinfo;
% ($payinfo1, $payinfo2) = ($1, $2);
% $payname = $cust_main->payname;
% $ss = $cust_main->ss;
+% $paytype = $cust_main->getfield('paytype');
+% $paystate = $cust_main->getfield('paystate');
+% $stateid = $cust_main->getfield('stateid');
+% $stateid_state = $cust_main->getfield('stateid_state');
% }
%
@@ -166,6 +172,8 @@
<TR>
<TD ALIGN="right">Account number</TD>
<TD><INPUT TYPE="text" SIZE=10 NAME="payinfo1" VALUE="<%$payinfo1%>"></TD>
+ <TD ALIGN="right">Type</TD>
+ <TD><SELECT NAME="paytype"><% join('', map { qq!<OPTION VALUE="$_" !.($paytype eq $_ ? 'SELECTED' : '').">$_</OPTION>" } @FS::cust_main::paytypes) %></SELECT></TD>
</TR>
<TR>
<TD ALIGN="right">ABA/Routing number</TD>
@@ -179,12 +187,35 @@
<TD><INPUT TYPE="text" NAME="payname" VALUE="<%$payname%>"></TD>
</TR>
<TR>
+ <TD ALIGN="right">Bank state</TD>
+ <TD><% include('../edit/cust_main/select-state.html', #meh
+ 'empty' => '(choose)',
+ 'state' => $paystate,
+ 'country' => $cust_main->country,
+ 'prefix' => 'pay',
+ ) %></TD>
+ </TR>
+ <TR>
<TD ALIGN="right">
Account holder<BR>
Social security or tax ID #
</TD>
<TD><INPUT TYPE="text" NAME="ss" VALUE="<%$ss%>"></TD>
</TR>
+ <TR>
+ <TD ALIGN="right">
+ Account holder<BR>
+ Driver’s license or state ID #
+ </TD>
+ <TD><INPUT TYPE="text" NAME="stateid" VALUE="<%$stateid%>"></TD>
+ <TD ALIGN="right">State</TD>
+ <TD><% include('../edit/cust_main/select-state.html', #meh
+ 'empty' => '(choose)',
+ 'state' => $stateid_state,
+ 'country' => $cust_main->country,
+ 'prefix' => 'stateid_',
+ ) %></TD>
+ </TR>
% }
More information about the freeside-commits
mailing list