From 17eb6519796c7b1784e2f8536fee6df5ca7bfe0c Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 22 Dec 2016 11:18:30 -0400 Subject: [PATCH] credit card issues --- .../static/digitalglarus/js/payment.js | 1 - .../digitalglarus/booking_payment.html | 62 ++++++++++++++++++- .../digitalglarus/new_credit_card.html | 50 +++++++-------- 3 files changed, 83 insertions(+), 30 deletions(-) diff --git a/digitalglarus/static/digitalglarus/js/payment.js b/digitalglarus/static/digitalglarus/js/payment.js index 2b06759a..c7463a5a 100644 --- a/digitalglarus/static/digitalglarus/js/payment.js +++ b/digitalglarus/static/digitalglarus/js/payment.js @@ -55,7 +55,6 @@ $( document ).ready(function() { $form.find('[type=submit]').html('Validating '); console.log("submiting2"); var PublishableKey = window.stripeKey; - alert(PublishableKey); Stripe.setPublishableKey(PublishableKey); Stripe.card.createToken($form, function stripeResponseHandler(status, response) { if (response.error) { diff --git a/digitalglarus/templates/digitalglarus/booking_payment.html b/digitalglarus/templates/digitalglarus/booking_payment.html index f257d1d9..cfa079a2 100644 --- a/digitalglarus/templates/digitalglarus/booking_payment.html +++ b/digitalglarus/templates/digitalglarus/booking_payment.html @@ -164,8 +164,8 @@
- I accept the Digital Glarus Terms and Conditions, Community Guidelines and Privacy Policy - + I accept the Digital Glarus Terms and Conditions, Community Guidelines and Privacy Policy +
@@ -203,6 +203,64 @@
+ + + {% if stripe_key %} diff --git a/digitalglarus/templates/digitalglarus/new_credit_card.html b/digitalglarus/templates/digitalglarus/new_credit_card.html index a8686755..3163738c 100644 --- a/digitalglarus/templates/digitalglarus/new_credit_card.html +++ b/digitalglarus/templates/digitalglarus/new_credit_card.html @@ -22,6 +22,8 @@ .order-bottom-text a{ margin-left: 0px; } + +
@@ -33,13 +35,7 @@

- Your Digital Glarus Membership enables - you to use our coworking space and it includes - 2 working days for the month you signed up. - The membership fee is a monthly subscription. - Additional day costs - 15CHF per day. More than 17 days a month it - will charge only 290CHF/month. +

{% if is_free %}

Billing Adress

@@ -72,7 +68,7 @@ {% else %} -
+ {% csrf_token %}

Last 4: *****{{last4}}

Type: {{cc_brand}}

@@ -81,12 +77,16 @@

Credit Card (New One)

-
+

@@ -111,30 +111,28 @@
-
+
- -
- -
+
-
-
+
+ +
- Go to my page + + + Cancel +
-
+
- - - - - - {% endif %} +