fix incorrect token

This commit is contained in:
Nathan Coad
2016-07-23 10:24:01 +10:00
parent cb97f64ecd
commit cd37a85ad6

View File

@@ -629,7 +629,7 @@ function booking_define_personspecific_tokens($node)
$tokens['paypal-total-amount'] = _booking_amount_owing($node, $amount_paid); $tokens['paypal-total-amount'] = _booking_amount_owing($node, $amount_paid);
$tokens['stripe-deposit-amount'] = ""; $tokens['stripe-deposit-amount'] = "";
$tokens['stripe-total-amount'] = ""; $tokens['stripe-total-amount'] = "";
$tokens['stripe-total-intl'] = ""; $tokens['stripe-total-amount-intl'] = "";
} }
//if stripe is enabled //if stripe is enabled
elseif ($payment_processor_type == 1) { elseif ($payment_processor_type == 1) {
@@ -637,7 +637,7 @@ function booking_define_personspecific_tokens($node)
$tokens['paypal-total-amount'] = ""; $tokens['paypal-total-amount'] = "";
$tokens['stripe-deposit-amount'] = _booking_deposit_amount($node, TRUE); $tokens['stripe-deposit-amount'] = _booking_deposit_amount($node, TRUE);
$tokens['stripe-total-amount'] = _booking_amount_owing($node, $amount_paid, TRUE, FALSE); $tokens['stripe-total-amount'] = _booking_amount_owing($node, $amount_paid, TRUE, FALSE);
$tokens['stripe-total-intl'] = _booking_amount_owing($node, $amount_paid, TRUE, TRUE); $tokens['stripe-total-amount-intl'] = _booking_amount_owing($node, $amount_paid, TRUE, TRUE);
} }
//if travelform is enabled //if travelform is enabled
if (variable_get('booking_enable_travelform', 0) == 1) { if (variable_get('booking_enable_travelform', 0) == 1) {