From: Jason Boyer Date: Thu, 19 Sep 2013 13:16:30 +0000 (-0400) Subject: Rough draft of integrating Stripe support into the opac payment page. X-Git-Tag: sprint4-merge-nov22~2297 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=18ba41d6913e74de1ce86ca9fe30a16b18feb364;p=working%2FEvergreen.git 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 --- 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%]

[% 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') %]