4.x style credit card payment
[freeside.git] / httemplate / misc / payment.cgi
index f30e409..35f57e8 100644 (file)
@@ -1,6 +1,6 @@
-<& /elements/header.html, mt("Process [_1] payment",$type{$payby})  &>
-<& /elements/small_custview.html, $cust_main, '', '', popurl(2) . "view/cust_main.cgi" &>
-<BR>
+<& /elements/header-cust_main.html, view=>'payment_history', cust_main=>$cust_main &>
+
+<h2><% emt("Process [_1] payment",$type{$payby}) %></h2>
 
 <FORM NAME="OneTrueForm" ACTION="process/payment.cgi" METHOD="POST" onSubmit="document.OneTrueForm.process.disabled=true">
 <INPUT TYPE="hidden" NAME="custnum"   VALUE="<% $custnum %>">
@@ -21,7 +21,7 @@
        'num_payments'       => scalar($cust_main->cust_pay), 
        'surcharge_percentage' =>
          ( $payby eq 'CARD'
-             ? scalar($conf->config('credit-card-surcharge-percentage'))
+             ? scalar($conf->config('credit-card-surcharge-percentage', $cust_main->agentnum))
              : 0
          ),
   &>
@@ -60,7 +60,7 @@
 
 <TR ID="apply_box_row">
   <TH ALIGN="right"><% mt('Auto-apply to invoices') |h %></TH>
-  <TD COLSPAN=2>
+  <TD>
     <SELECT NAME="apply" ID="apply_box">
       <OPTION VALUE="yes" SELECTED><% mt('yes') |h %></OPTION> 
       <OPTION VALUE=""><% mt('not now') |h %></OPTION>
@@ -309,7 +309,7 @@ function change_batch_checkbox () {
 <INPUT TYPE="submit" NAME="process" VALUE="<% mt('Process payment') |h %>">
 </FORM>
 
-<& /elements/footer.html &>
+<& /elements/footer-cust_main.html &>
 <%once>
 
 my %weight = (