From: Lebbeous Fogle-Weekley Date: Tue, 26 Jul 2011 22:01:52 +0000 (-0400) Subject: Confirm CC payments with another page load, not confirm() popup X-Git-Tag: sprint4-merge-nov22~5128^2~76^2^2~25 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=52103ef04e091cd05a6049b6657256238889370a;p=working%2FEvergreen.git Confirm CC payments with another page load, not confirm() popup This does something gross. Your CC card number is rendered in a hidden field on the last confirmation page. At least it's all SSL only. Signed-off-by: Lebbeous Fogle-Weekley --- diff --git a/Open-ILS/web/templates/default/opac/myopac/main_payment_form.tt2 b/Open-ILS/web/templates/default/opac/myopac/main_payment_form.tt2 index 592c42dd50..52534d2a69 100644 --- a/Open-ILS/web/templates/default/opac/myopac/main_payment_form.tt2 +++ b/Open-ILS/web/templates/default/opac/myopac/main_payment_form.tt2 @@ -3,6 +3,9 @@ WRAPPER "default/opac/parts/myopac/main_base.tt2"; myopac_page = "main"; myopac_main_page = "payment_form"; + + last_chance = CGI.param("last_chance"); + %] [% IF ctx.fines.balance_owed <= 0 %]
@@ -11,14 +14,26 @@
[% ELSE %]
-
+ [% IF last_chance %] +

[% l("Are you sure you are ready to charge [_1] to your credit card?", money(ctx.fines.balance_owed)) %]

+ + [% FOR k IN CGI.Vars; + NEXT UNLESS k %] + + [% END %] + + + [% ELSE %] + + [% FOR xact IN CGI.param('xact') %] [% END %] [% FOR xact IN CGI.param('xact_misc') %] [% END %] + @@ -157,7 +172,7 @@ @@ -165,6 +180,7 @@ [% INCLUDE "default/opac/parts/myopac/main_refund_policy.tt2" %]
- +
+ [% END %]
[% END %]