customise payment button
This commit is contained in:
@@ -51,8 +51,9 @@ function booking_stripe_form($node, &$form_state, $person, $invoiceid, $net_amou
|
|||||||
'form_selector' => str_replace('_', '-', __FUNCTION__),
|
'form_selector' => str_replace('_', '-', __FUNCTION__),
|
||||||
'name' => $event->booking_eventname,
|
'name' => $event->booking_eventname,
|
||||||
'image' => variable_get('booking_stripe_logo', ''),
|
'image' => variable_get('booking_stripe_logo', ''),
|
||||||
|
'payment_button_label' => '{{amount}} (plus fees)',
|
||||||
);
|
);
|
||||||
|
|
||||||
//attach settings and javascript to the form
|
//attach settings and javascript to the form
|
||||||
$form['#attached'] = array(
|
$form['#attached'] = array(
|
||||||
'js' => array(
|
'js' => array(
|
||||||
|
@@ -30,7 +30,7 @@ jQuery(document).ready(function($) {
|
|||||||
|
|
||||||
handler.open({
|
handler.open({
|
||||||
name: $settings.name,
|
name: $settings.name,
|
||||||
panelLabel: "Pay {{amount}} (plus fees)",
|
panelLabel: $settings.payment_button_label,
|
||||||
currency: "AUD",
|
currency: "AUD",
|
||||||
description: $(':input[name="description"]', $stripeForm).val(),
|
description: $(':input[name="description"]', $stripeForm).val(),
|
||||||
email: $(':input[name="email"]', $stripeForm).val(),
|
email: $(':input[name="email"]', $stripeForm).val(),
|
||||||
|
Reference in New Issue
Block a user