1 <%= $url = "$selfurl?session=$session_id;action="; ''; %>
2 <%= include('header', 'Make a payment') %>
4 <FORM NAME="OneTrueForm" METHOD="POST" ACTION="<%=$selfurl%>" onSubmit="document.OneTrueForm.process.disabled=true">
5 <INPUT TYPE="hidden" NAME="session" VALUE="<%=$session_id%>">
6 <INPUT TYPE="hidden" NAME="action" VALUE="payment_results">
7 <TABLE BGCOLOR="#cccccc">
9 <TH ALIGN="right">Amount Due</TH>
11 <TABLE><TR><TD BGCOLOR="#ffffff">
12 $<%=sprintf("%.2f",$balance)%>
17 <TH ALIGN="right">Payment amount</TH>
19 <TABLE><TR><TD BGCOLOR="#ffffff">
22 $amt += $amt * $credit_card_surcharge_percentage/100
23 if $credit_card_surcharge_percentage > 0;
26 $<INPUT TYPE="text" NAME="amount" SIZE=8 VALUE="<%=sprintf("%.2f",$amt)%>">
30 <%= include('discount_term') %>
32 <TH ALIGN="right">Card type</TH>
34 <SELECT NAME="card_type"><OPTION></OPTION>
35 <%= foreach ( keys %card_types ) {
36 $selected = $card_type eq $card_types{$_} ? ' SELECTED' : '';
37 $OUT .= qq(<OPTION$selected VALUE="). $card_types{$_}. qq(">$_\n);
42 <%= include('card') %>
45 <INPUT TYPE="checkbox" <%= $save_unchecked ? '' : 'CHECKED' %> NAME="save" VALUE="1">
46 Remember this card and billing address
50 <INPUT TYPE="checkbox"<%= $payby eq 'CARD' ? ' CHECKED' : '' %> NAME="auto" VALUE="1" onClick="if (this.checked) { document.OneTrueForm.save.checked=true; }">
51 Charge future payments to this card automatically
56 <INPUT TYPE="hidden" NAME="paybatch" VALUE="<%=$paybatch%>">
57 <INPUT TYPE="submit" NAME="process" VALUE="Process payment"> <!-- onClick="this.disabled=true"> -->
60 <%= include('footer') %>