customise checkout form
This commit is contained in:
@@ -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),
|
||||
|
Reference in New Issue
Block a user