From 1648d9558cfe458c9f7f5609171feb9542d8ffb3 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 20 Dec 2016 11:15:09 -0400 Subject: [PATCH] credit card, button, modal size fixed --- .../static/digitalglarus/js/payment.js | 6 +- .../digitalglarus/booking_orders_detail.html | 2 +- .../digitalglarus/membership_payment.html | 78 ++++++++++++++----- .../digitalglarus/new_credit_card.html | 8 +- .../digitalglarus/reset_password.html | 2 +- digitalglarus/urls.py | 2 +- digitalglarus/views.py | 16 ++-- 7 files changed, 75 insertions(+), 39 deletions(-) diff --git a/digitalglarus/static/digitalglarus/js/payment.js b/digitalglarus/static/digitalglarus/js/payment.js index 90e922b1..2b06759a 100644 --- a/digitalglarus/static/digitalglarus/js/payment.js +++ b/digitalglarus/static/digitalglarus/js/payment.js @@ -19,7 +19,6 @@ $( document ).ready(function() { } if (!(/^http:.*/.test(settings.url) || /^https:.*/.test(settings.url))) { // Only send the token to relative URLs i.e. locally. - alert("POR AQUI"); xhr.setRequestHeader("X-CSRFToken", getCookie('csrftoken')); } } @@ -34,7 +33,6 @@ $( document ).ready(function() { function submit_payment(e){ $('#billing-form').submit(); - alert("POR AQUI2"); // $form.submit(); } @@ -44,7 +42,7 @@ $( document ).ready(function() { /* If you're using Stripe for payments */ function payWithStripe(e) { - console.log("submiting33"); + console.log("submiting"); e.preventDefault(); if (!$('.agree-terms').is(':checked')){ @@ -55,7 +53,6 @@ $( document ).ready(function() { /* Visual feedback */ $form.find('[type=submit]').html('Validating '); - alert("POR AQUI3"); console.log("submiting2"); var PublishableKey = window.stripeKey; alert(PublishableKey); @@ -63,7 +60,6 @@ $( document ).ready(function() { Stripe.card.createToken($form, function stripeResponseHandler(status, response) { if (response.error) { /* Visual feedback */ - alert("POR AQUI32345"); $form.find('[type=submit]').html('Try again'); /* Show Stripe errors on the form */ $form.find('.payment-errors').text(response.error.message); diff --git a/digitalglarus/templates/digitalglarus/booking_orders_detail.html b/digitalglarus/templates/digitalglarus/booking_orders_detail.html index a91ec55a..a84428bd 100644 --- a/digitalglarus/templates/digitalglarus/booking_orders_detail.html +++ b/digitalglarus/templates/digitalglarus/booking_orders_detail.html @@ -84,7 +84,7 @@ Go to my page - +