customise checkout form

This commit is contained in:
Nathan Coad
2016-07-23 10:03:53 +10:00
parent dd70dfd5a3
commit f6ee9d11a7
3 changed files with 63 additions and 63 deletions

View File

@@ -26,11 +26,12 @@ jQuery(document).ready(function($) {
$('.form-submit').click(function (e) {
var $settings = Drupal.settings.booking_stripe;
var $stripeForm = $("#" + $settings.form_selector);
var $amount = $(':input[name="gross_amount"]', $stripeForm).val() * 100;
var $amount = $(':input[name="amount"]', $stripeForm).val() * 100;
handler.open({
name: $settings.name,
currency: "aud",
panelLabel: "Pay {{amount}} (plus fees)",
currency: "AUD",
description: $(':input[name="description"]', $stripeForm).val(),
email: $(':input[name="email"]', $stripeForm).val(),
amount: Math.round($amount),