added company_phonenum, for notifications, RT#12363
[freeside.git] / fs_selfservice / FS-SelfService / cgi / make_payment.html
1 <%= $url = "$selfurl?session=$session_id;action="; ''; %>
2 <%= include('header', 'Make a payment') %>
3
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">
8 <TR>
9   <TH ALIGN="right">Amount&nbsp;Due</TH>
10   <TD COLSPAN=7>
11     <TABLE><TR><TD BGCOLOR="#ffffff">
12       $<%=sprintf("%.2f",$balance)%>
13     </TD></TR></TABLE>
14   </TD>
15 </TR>
16 <TR>
17   <TH ALIGN="right">Payment&nbsp;amount</TH>
18   <TD COLSPAN=7>
19     <TABLE><TR><TD BGCOLOR="#ffffff">
20 <%=
21     $amt = $balance;
22     $amt += $amt * $credit_card_surcharge_percentage/100
23         if $credit_card_surcharge_percentage > 0;
24     '';
25 %>
26       $<INPUT TYPE="text" NAME="amount" SIZE=8 VALUE="<%=sprintf("%.2f",$amt)%>">
27     </TD></TR></TABLE>
28   </TD>
29 </TR>
30 <%= include('discount_term') %>
31 <TR>
32   <TH ALIGN="right">Card&nbsp;type</TH>
33   <TD COLSPAN=7>
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);
38       } %>
39     </SELECT>
40   </TD>
41 </TR>
42 <%= include('card') %>
43 <TR>
44   <TD COLSPAN=8>
45     <INPUT TYPE="checkbox" <%= $save_unchecked ? '' : 'CHECKED' %> NAME="save" VALUE="1">
46     Remember this card and billing address
47   </TD>
48 </TR><TR>
49   <TD COLSPAN=8>
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
52   </TD>
53 </TR>
54 </TABLE>
55 <BR>
56 <INPUT TYPE="hidden" NAME="paybatch" VALUE="<%=$paybatch%>">
57 <INPUT TYPE="submit" NAME="process" VALUE="Process payment"> <!-- onClick="this.disabled=true"> -->
58 </FORM>
59
60 <%= include('footer') %>