diff options
author | levinse <levinse> | 2011-01-21 22:17:30 +0000 |
---|---|---|
committer | levinse <levinse> | 2011-01-21 22:17:30 +0000 |
commit | 0f7643c1af2d909e0c3172e5bec0c01855fca1b9 (patch) | |
tree | 44ef002a6a32f77b1a369a319ee10f1f597c0b82 /fs_selfservice | |
parent | fd4aeda41e6b9318af8e367d761bb2b2c0a402f9 (diff) |
add (unfinished) credit card surcharge, part 1
Diffstat (limited to 'fs_selfservice')
-rw-r--r-- | fs_selfservice/FS-SelfService/cgi/make_payment.html | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/fs_selfservice/FS-SelfService/cgi/make_payment.html b/fs_selfservice/FS-SelfService/cgi/make_payment.html index 645b68ec7..3bce67433 100644 --- a/fs_selfservice/FS-SelfService/cgi/make_payment.html +++ b/fs_selfservice/FS-SelfService/cgi/make_payment.html @@ -17,7 +17,13 @@ <TH ALIGN="right">Payment amount</TH> <TD COLSPAN=7> <TABLE><TR><TD BGCOLOR="#ffffff"> - $<INPUT TYPE="text" NAME="amount" SIZE=8 VALUE="<%=sprintf("%.2f",$balance)%>"> +<%= + $amt = $balance; + $amt += $amt * $credit_card_surcharge_percentage/100 + if $credit_card_surcharge_percentage > 0; + ''; +%> + $<INPUT TYPE="text" NAME="amount" SIZE=8 VALUE="<%=sprintf("%.2f",$amt)%>"> </TD></TR></TABLE> </TD> </TR> |