[freeside-commits] freeside/httemplate/misc payment.cgi,1.14,1.15
Ivan,,,
ivan at wavetail.420.am
Wed Jul 11 01:08:31 PDT 2007
Update of /home/cvs/cvsroot/freeside/httemplate/misc
In directory wavetail:/tmp/cvs-serv10694/httemplate/misc
Modified Files:
payment.cgi
Log Message:
finish adding payunique field
Index: payment.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/misc/payment.cgi,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- payment.cgi 23 Apr 2007 03:41:30 -0000 1.14
+++ payment.cgi 11 Jul 2007 08:08:28 -0000 1.15
@@ -1,41 +1,9 @@
-%
-% my %type = ( 'CARD' => 'credit card',
-% 'CHEK' => 'electronic check (ACH)',
-% );
-%
-% $cgi->param('payby') =~ /^(CARD|CHEK)$/
-% or die "unknown payby ". $cgi->param('payby');
-% my $payby = $1;
-%
-% $cgi->param('custnum') =~ /^(\d+)$/
-% or die "illegal custnum ". $cgi->param('custnum');
-% my $custnum = $1;
-%
-% my $cust_main = qsearchs( 'cust_main', { 'custnum'=>$custnum } );
-% die "unknown custnum $custnum" unless $cust_main;
-%
-% my $balance = $cust_main->balance;
-%
-% my $payinfo = '';
-%
-% #false laziness w/selfservice make_payment.html shortcut for one-country
-% my $conf = new FS::Conf;
-% my %states = map { $_->state => 1 }
-% qsearch('cust_main_county', {
-% 'country' => $conf->config('countrydefault') || 'US'
-% } );
-% my @states = sort { $a cmp $b } keys %states;
-%
-% my $paybatch = "webui-payment-". time. "-$$-". rand() * 2**32;
-%
-%
-
<% include( '/elements/header.html', "Process $type{$payby} payment" ) %>
<% include( '/elements/small_custview.html', $cust_main, '', '', popurl(2) . "view/cust_main.cgi" ) %>
<FORM NAME="OneTrueForm" ACTION="process/payment.cgi" METHOD="POST" onSubmit="document.OneTrueForm.process.disabled=true">
<INPUT TYPE="hidden" NAME="custnum" VALUE="<% $custnum %>">
<INPUT TYPE="hidden" NAME="payby" VALUE="<% $payby %>">
-<INPUT TYPE="hidden" NAME="paybatch" VALUE="<% $paybatch %>">
+<INPUT TYPE="hidden" NAME="payunique" VALUE="<% $payunique %>">
<SCRIPT TYPE="text/javascript" SRC="../elements/overlibmws.js"></SCRIPT>
<SCRIPT TYPE="text/javascript" SRC="../elements/overlibmws_iframe.js"></SCRIPT>
@@ -246,3 +214,37 @@
</FORM>
<% include('/elements/footer.html') %>
+<%init>
+
+my %type = ( 'CARD' => 'credit card',
+ 'CHEK' => 'electronic check (ACH)',
+ );
+
+$cgi->param('payby') =~ /^(CARD|CHEK)$/
+ or die "unknown payby ". $cgi->param('payby');
+my $payby = $1;
+
+$cgi->param('custnum') =~ /^(\d+)$/
+ or die "illegal custnum ". $cgi->param('custnum');
+my $custnum = $1;
+
+my $cust_main = qsearchs( 'cust_main', { 'custnum'=>$custnum } );
+die "unknown custnum $custnum" unless $cust_main;
+
+my $balance = $cust_main->balance;
+
+my $payinfo = '';
+
+#false laziness w/selfservice make_payment.html shortcut for one-country
+my $conf = new FS::Conf;
+my %states = map { $_->state => 1 }
+ qsearch('cust_main_county', {
+ 'country' => $conf->config('countrydefault') || 'US'
+ } );
+my @states = sort { $a cmp $b } keys %states;
+
+my $payunique = "webui-payment-". time. "-$$-". rand() * 2**32;
+
+</%init>
+
+
More information about the freeside-commits
mailing list