js progress

This commit is contained in:
Nathan Coad
2016-07-22 10:28:59 +10:00
parent 5c00f6e342
commit 578bea1aa6

View File

@@ -35,19 +35,19 @@ jQuery(document).ready(function($) {
return;
var settings = Drupal.settings.booking_stripe;
var $stripeForm = $("#" + settings.form_selector);
$description = $(':input[name="email"]', $stripeForm).val();
$description = $(':input[name="description"]', $stripeForm).val();
console.log([$description]);
//description: $(':input[name="description"]', $stripeForm),
//email: $(':input[name="email"]', $stripeForm),
//amount: $(':input[name="amount"]', $stripeForm),
//description: currentForm.find('input[name="description"]').val(),
//email: currentForm.find('input[name="email"]').val(),
//amount: currentForm.find('input[name="amount"]').val() * 100,
//alert($(':input[name="description"]', $stripeForm));
handler.open({
name: settings.name,
description: currentForm.find('input[name="description"]').val(),
email: currentForm.find('input[name="email"]').val(),
currency: "aud",
amount: currentForm.find('input[name="amount"]').val() * 100,
currency: "aud",
description: $(':input[name="description"]', $stripeForm).val(),
email: $(':input[name="email"]', $stripeForm).val(),
amount: $(':input[name="amount"]', $stripeForm).val(),
zipCode: true,
closed: function() {
//document.getElementById("booking_stripe_form").submit();