js bugfix after variable rename
This commit is contained in:
@@ -2,8 +2,8 @@ jQuery(document).ready(function($) {
|
||||
var $settings = Drupal.settings.booking_stripe;
|
||||
var $stripeForm = $("#" + $settings.form_selector);
|
||||
var handler = StripeCheckout.configure({
|
||||
key: settings.pubkey,
|
||||
image: settings.image,
|
||||
key: $settings.pubkey,
|
||||
image: $settings.image,
|
||||
locale: 'auto',
|
||||
token: function(token) {
|
||||
try {
|
||||
@@ -36,7 +36,7 @@ jQuery(document).ready(function($) {
|
||||
//amount: currentForm.find('input[name="amount"]').val() * 100,
|
||||
//alert($(':input[name="description"]', $stripeForm));
|
||||
handler.open({
|
||||
name: settings.name,
|
||||
name: $settings.name,
|
||||
currency: "aud",
|
||||
description: $(':input[name="description"]', $stripeForm).val(),
|
||||
email: $(':input[name="email"]', $stripeForm).val(),
|
||||
|
Reference in New Issue
Block a user