fix confirmation form to handle stripe

This commit is contained in:
Nathan Coad
2016-08-22 09:54:51 +10:00
parent d906c2e220
commit f79f812e4e
4 changed files with 22 additions and 9 deletions

View File

@@ -828,9 +828,11 @@ function _booking_deposit_amount($person, $include_fees = TRUE) {
//if we're using paypal or stripe, add the transaction fee
$payment_processor_type = variable_get('booking_payment_processor', 0);
if ($include_fees == TRUE) {
//paypal is enabled
if ($payment_processor_type == 0) {
$amount_owing = _booking_add_paypal_fees($deposit->booking_price, $person->booking_country);
}
}
//stripe is enabled
elseif ($payment_processor_type == 1) {
$amount_owing = _booking_add_stripe_fees($deposit->booking_price, $person->booking_country);
}