From 52103ef04e091cd05a6049b6657256238889370a Mon Sep 17 00:00:00 2001 From: Lebbeous Fogle-Weekley Date: Tue, 26 Jul 2011 18:01:52 -0400 Subject: [PATCH] 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 --- .../default/opac/myopac/main_payment_form.tt2 | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) 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 %] -- 2.11.0