fix confirmation form to handle stripe
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user