customise payment button

This commit is contained in:
Nathan Coad
2016-07-23 10:07:34 +10:00
parent f6ee9d11a7
commit 581b7d7537
2 changed files with 3 additions and 2 deletions

View File

@@ -51,8 +51,9 @@ function booking_stripe_form($node, &$form_state, $person, $invoiceid, $net_amou
'form_selector' => str_replace('_', '-', __FUNCTION__),
'name' => $event->booking_eventname,
'image' => variable_get('booking_stripe_logo', ''),
'payment_button_label' => '{{amount}} (plus fees)',
);
//attach settings and javascript to the form
$form['#attached'] = array(
'js' => array(

View File

@@ -30,7 +30,7 @@ jQuery(document).ready(function($) {
handler.open({
name: $settings.name,
panelLabel: "Pay {{amount}} (plus fees)",
panelLabel: $settings.payment_button_label,
currency: "AUD",
description: $(':input[name="description"]', $stripeForm).val(),
email: $(':input[name="email"]', $stripeForm).val(),