From 18ba41d6913e74de1ce86ca9fe30a16b18feb364 Mon Sep 17 00:00:00 2001 From: Jason Boyer Date: Thu, 19 Sep 2013 09:16:30 -0400 Subject: [PATCH] Rough draft of integrating Stripe support into the opac payment page. Conflicts: Open-ILS/src/templates/opac/myopac/main_payment_form.tt2 Open-ILS/src/templates/opac/parts/base.tt2 Signed-off-by: Remington Steed Signed-off-by: Dan Wells --- .../opac/myopac/main_payment_form.tt2 | 60 ++++++++++++------- Open-ILS/src/templates/opac/parts/base.tt2 | 41 ++++++++++++- 2 files changed, 76 insertions(+), 25 deletions(-) diff --git a/Open-ILS/src/templates/opac/myopac/main_payment_form.tt2 b/Open-ILS/src/templates/opac/myopac/main_payment_form.tt2 index ad992917c8..e04e664c19 100644 --- a/Open-ILS/src/templates/opac/myopac/main_payment_form.tt2 +++ b/Open-ILS/src/templates/opac/myopac/main_payment_form.tt2 @@ -5,7 +5,7 @@ myopac_main_page = "payment_form"; last_chance = CGI.param("last_chance"); - + use_stripe = ctx.get_org_setting(ctx.user.home_ou.id, 'opac.processor.stripe.enabled'); %]

[% l('Pay Fines') %]

[% IF ctx.fines.balance_owed <= 0 %] @@ -26,7 +26,11 @@ [% l('Cancel') %] [% ELSE %] -
+ [% FOR xact IN CGI.param('xact') %] @@ -34,6 +38,9 @@ [% FOR xact IN CGI.param('xact_misc') %] [% END %] + [% IF use_stripe %] + + [% ENDIF %] @@ -127,34 +134,37 @@ - - + + diff --git a/Open-ILS/src/templates/opac/parts/base.tt2 b/Open-ILS/src/templates/opac/parts/base.tt2 index fc0c16ea31..ed82a3b43a 100644 --- a/Open-ILS/src/templates/opac/parts/base.tt2 +++ b/Open-ILS/src/templates/opac/parts/base.tt2 @@ -4,9 +4,9 @@ [% IF ctx.refresh %] - + [% ELSIF ctx.authtime AND !ctx.is_staff %] - + [% END %] @@ -20,7 +20,42 @@ [% END %] [% INCLUDE 'opac/parts/goog_analytics.tt2' %] - + [% IF myopac_main_page == "payment_form" AND ctx.get_org_setting(ctx.user.home_ou.id, 'opac.processor.stripe.enabled')%] + + + [% END %] + +

[% l('Catalog') %]

[%#Each content page needs (at minimum) an

describing the content%] -- 2.43.2

[% l('Credit Card Information') %]
- -
- @@ -173,7 +183,13 @@
- [% year = date.format(date.now, '%Y'); y = year; WHILE y < year + 10; # show ten years starting now %] @@ -184,7 +200,7 @@
- + [% l('Cancel') %]