js debugging
This commit is contained in:
@@ -14,8 +14,8 @@ jQuery(document).ready(function($) {
|
|||||||
$stripeForm.get(0).submit();
|
$stripeForm.get(0).submit();
|
||||||
}
|
}
|
||||||
catch(err) {
|
catch(err) {
|
||||||
//console.log([err]);
|
console.log([err]);
|
||||||
alert(err);
|
alert(err.message);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Use the token to create the charge with a server-side script.
|
// Use the token to create the charge with a server-side script.
|
||||||
@@ -35,16 +35,19 @@ jQuery(document).ready(function($) {
|
|||||||
return;
|
return;
|
||||||
var settings = Drupal.settings.booking_stripe;
|
var settings = Drupal.settings.booking_stripe;
|
||||||
var $stripeForm = $("#" + settings.form_selector);
|
var $stripeForm = $("#" + settings.form_selector);
|
||||||
alert($(':input[name="description"]', $stripeForm));
|
$description = $(':input[name="email"]', $stripeForm).val();
|
||||||
|
console.log([$description]);
|
||||||
|
|
||||||
|
//description: $(':input[name="description"]', $stripeForm),
|
||||||
|
//email: $(':input[name="email"]', $stripeForm),
|
||||||
|
//amount: $(':input[name="amount"]', $stripeForm),
|
||||||
|
//alert($(':input[name="description"]', $stripeForm));
|
||||||
handler.open({
|
handler.open({
|
||||||
name: settings.name,
|
name: settings.name,
|
||||||
description: currentForm.find('input[name="description"]').val(),
|
description: currentForm.find('input[name="description"]').val(),
|
||||||
//description: $(':input[name="description"]', $stripeForm),
|
|
||||||
email: currentForm.find('input[name="email"]').val(),
|
email: currentForm.find('input[name="email"]').val(),
|
||||||
//email: $(':input[name="email"]', $stripeForm),
|
|
||||||
currency: "aud",
|
currency: "aud",
|
||||||
amount: currentForm.find('input[name="amount"]').val() * 100,
|
amount: currentForm.find('input[name="amount"]').val() * 100,
|
||||||
//amount: $(':input[name="amount"]', $stripeForm),
|
|
||||||
zipCode: true,
|
zipCode: true,
|
||||||
closed: function() {
|
closed: function() {
|
||||||
//document.getElementById("booking_stripe_form").submit();
|
//document.getElementById("booking_stripe_form").submit();
|
||||||
|
Reference in New Issue
Block a user