X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=httemplate%2Fmisc%2Fpayment.cgi;h=24248eb273f2fdb49a675114e5482f58abba6983;hb=ae2ce7f3fc2a0fe00f05145ce64e8b6b8c034631;hp=ac102826a48f4740589d39b66d0c560affd3d1bb;hpb=0ddbeb00fa8c2d777d8344ee690054bb7d382c6c;p=freeside.git
diff --git a/httemplate/misc/payment.cgi b/httemplate/misc/payment.cgi
index ac102826a..24248eb27 100644
--- a/httemplate/misc/payment.cgi
+++ b/httemplate/misc/payment.cgi
@@ -1,248 +1,370 @@
-%
-% 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;
-%
-%
+<& /elements/header.html, mt("Process [_1] payment",$type{$payby}) &>
+<& /elements/small_custview.html, $cust_main, '', '', popurl(2) . "view/cust_main.cgi" &>
+
-<% include( '/elements/header.html', "Process $type{$payby} payment" ) %>
-<% include( '/elements/small_custview.html', $cust_main, '', '', popurl(2) . "view/cust_main.cgi" ) %>