projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
RT#24684: Payments for Online Bill Pay
[freeside.git]
/
fs_selfservice
/
FS-SelfService
/
cgi
/
make_payment.html
diff --git
a/fs_selfservice/FS-SelfService/cgi/make_payment.html
b/fs_selfservice/FS-SelfService/cgi/make_payment.html
index
3bce674
..
503901e
100644
(file)
--- a/
fs_selfservice/FS-SelfService/cgi/make_payment.html
+++ b/
fs_selfservice/FS-SelfService/cgi/make_payment.html
@@
-1,33
+1,28
@@
-<%= $url = "$selfurl?session=$session_id;action="; ''; %>
<%= include('header', 'Make a payment') %>
<FORM NAME="OneTrueForm" METHOD="POST" ACTION="<%=$selfurl%>" onSubmit="document.OneTrueForm.process.disabled=true">
<%= include('header', 'Make a payment') %>
<FORM NAME="OneTrueForm" METHOD="POST" ACTION="<%=$selfurl%>" onSubmit="document.OneTrueForm.process.disabled=true">
-<INPUT TYPE="hidden" NAME="session" VALUE="<%=$session_id%>">
<INPUT TYPE="hidden" NAME="action" VALUE="payment_results">
<TABLE BGCOLOR="#cccccc">
<INPUT TYPE="hidden" NAME="action" VALUE="payment_results">
<TABLE BGCOLOR="#cccccc">
+
+<%=
+if ($balance > 0) {
+ $OUT .= <<EOF;
<TR>
<TH ALIGN="right">Amount Due</TH>
<TD COLSPAN=7>
<TABLE><TR><TD BGCOLOR="#ffffff">
<TR>
<TH ALIGN="right">Amount Due</TH>
<TD COLSPAN=7>
<TABLE><TR><TD BGCOLOR="#ffffff">
- $
<%=sprintf("%.2f",$balance)%>
+ $
money_char$balance
</TD></TR></TABLE>
</TD>
</TR>
</TD></TR></TABLE>
</TD>
</TR>
-<TR>
- <TH ALIGN="right">Payment amount</TH>
- <TD COLSPAN=7>
- <TABLE><TR><TD BGCOLOR="#ffffff">
-<%=
- $amt = $balance;
- $amt += $amt * $credit_card_surcharge_percentage/100
- if $credit_card_surcharge_percentage > 0;
- '';
+EOF
+}
%>
%>
- $<INPUT TYPE="text" NAME="amount" SIZE=8 VALUE="<%=sprintf("%.2f",$amt)%>">
- </TD></TR></TABLE>
- </TD>
-</TR>
+
+<%= $tr_amount_fee %>
+
<%= include('discount_term') %>
<%= include('discount_term') %>
+
<TR>
<TH ALIGN="right">Card type</TH>
<TD COLSPAN=7>
<TR>
<TH ALIGN="right">Card type</TH>
<TD COLSPAN=7>
@@
-53,7
+48,7
@@
</TR>
</TABLE>
<BR>
</TR>
</TABLE>
<BR>
-<INPUT TYPE="hidden" NAME="pay
batch" VALUE="<%=$paybatch
%>">
+<INPUT TYPE="hidden" NAME="pay
unique" VALUE="<%=$payunique
%>">
<INPUT TYPE="submit" NAME="process" VALUE="Process payment"> <!-- onClick="this.disabled=true"> -->
</FORM>
<INPUT TYPE="submit" NAME="process" VALUE="Process payment"> <!-- onClick="this.disabled=true"> -->
</FORM>