From e5c4224c502773f4847331e700a5431a8163c93f Mon Sep 17 00:00:00 2001 From: Terran McCanna Date: Tue, 19 Jan 2021 15:34:24 -0500 Subject: [PATCH] PINES - Stripe Payment Fix Proposed fix to make the Stripe payment form display Signed-off-by: Terran McCanna --- .../opac/myopac/main_payment_form.tt2 | 77 ++++++++++++++++++---- 1 file changed, 65 insertions(+), 12 deletions(-) diff --git a/Open-ILS/src/templates-bootstrap/opac/myopac/main_payment_form.tt2 b/Open-ILS/src/templates-bootstrap/opac/myopac/main_payment_form.tt2 index a774bb707b..954fe7c297 100755 --- a/Open-ILS/src/templates-bootstrap/opac/myopac/main_payment_form.tt2 +++ b/Open-ILS/src/templates-bootstrap/opac/myopac/main_payment_form.tt2 @@ -20,18 +20,71 @@ [% ELSE %]

-
- [% IF last_chance %] - [% PROCESS "opac/myopac/last_chance_form.tt2"; %] - [% ELSE %] - [% IF ctx.cc_configuration_error %] - [% PROCESS "opac/myopac/payment_form_error.tt2"; %] - [% ELSE %] - [% IF ctx.use_stripe %] - [% PROCESS "opac/myopac/stripe_payment_form.tt2"; %] - [% ELSE %] - [% PROCESS "opac/myopac/generic_payment_form.tt2"; %] - [% END %] +
+ [% IF last_chance %] +

[% l("Confirm Payment") %]

+ +
+ [% FOR k IN CGI.Vars; + NEXT UNLESS k; + FOR val IN CGI.param(k) %] + + [% END; END %] + + + [% l('Cancel') %] +

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

+ + + + + + + + + [% + FOR f IN ctx.fines.circulation; + NEXT IF CGI.param('xact').size && + !CGI.param('xact').grep(f.xact.id).size; + attrs = {marc_xml => f.marc_xml}; + IF f.marc_xml; + PROCESS get_marc_attrs args=attrs; + ELSIF f.xact.reservation; + attrs.title = f.xact.reservation.target_resource_type.name; + END %] + + + + + [% + END; + FOR f IN ctx.fines.grocery; + NEXT IF CGI.param('xact_misc').size && + !CGI.param('xact_misc').grep(f.xact.id).size %] + + + + + [% END %] + +
[% l('Charge/Fee') %][% l('Amount') %]
[% attrs.title | html %][% money(f.xact.balance_owed) %]
[% f.xact.last_billing_type | html %][% money(f.xact.balance_owed) %]
+ + [% ELSE %] + + + + [% FOR xact IN CGI.param('xact') %] + + [% END %] + [% FOR xact IN CGI.param('xact_misc') %] + [% END %] [% END %]
-- 2.11.0