credit card, button, modal size fixed

This commit is contained in:
unknown 2016-12-20 11:15:09 -04:00
commit 1648d9558c
7 changed files with 75 additions and 39 deletions

View file

@ -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 <i class="fa fa-spinner fa-pulse"></i>');
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);