add token for stripe
This commit is contained in:
@@ -46,6 +46,7 @@ function booking_balance_page() {
|
|||||||
//populate tokens and paypal form
|
//populate tokens and paypal form
|
||||||
$tokens = booking_define_personspecific_tokens($node);
|
$tokens = booking_define_personspecific_tokens($node);
|
||||||
$tokens['paypal-total-form'] = _booking_paypal_form($node, $invoiceid, $tokens['paypal-total-amount'], "Pay Balance");
|
$tokens['paypal-total-form'] = _booking_paypal_form($node, $invoiceid, $tokens['paypal-total-amount'], "Pay Balance");
|
||||||
|
$tokens['stripe-total-form'] = _booking_stripe_form($node, $invoiceid, $tokens['paypal-total-amount'], "Pay Balance");
|
||||||
|
|
||||||
//Calculate the amount outstanding
|
//Calculate the amount outstanding
|
||||||
//watchdog('booking', 'Booking Balance form calculating amount owing');
|
//watchdog('booking', 'Booking Balance form calculating amount owing');
|
||||||
|
@@ -437,6 +437,14 @@ function booking_token_info() {
|
|||||||
'name' => t('Paypal Total Form Button'),
|
'name' => t('Paypal Total Form Button'),
|
||||||
'description' => t('The paypal form for the total amount.')
|
'description' => t('The paypal form for the total amount.')
|
||||||
);
|
);
|
||||||
|
$info['tokens']['booking']['stripe-deposit-form'] = array(
|
||||||
|
'name' => t('Stripe Deposit Form Button'),
|
||||||
|
'description' => t('The stripe popup form for the deposit amount.')
|
||||||
|
);
|
||||||
|
$info['tokens']['booking']['stripe-total-form'] = array(
|
||||||
|
'name' => t('Stripe Total Form Button'),
|
||||||
|
'description' => t('The stripe popup form for the total amount.')
|
||||||
|
);
|
||||||
$info['tokens']['booking']['booking-id'] = array(
|
$info['tokens']['booking']['booking-id'] = array(
|
||||||
'name' => t('Booking ID'),
|
'name' => t('Booking ID'),
|
||||||
'description' => t('ID of the user\'s registration.')
|
'description' => t('ID of the user\'s registration.')
|
||||||
|
Reference in New Issue
Block a user