add token for stripe

This commit is contained in:
Nathan Coad
2016-07-21 15:23:01 +10:00
parent 3e6ea4936b
commit 62060f075a
2 changed files with 9 additions and 0 deletions

View File

@@ -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');

View File

@@ -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.')