diff --git a/booking.helper.inc b/booking.helper.inc index 13badb7..5cf1092 100644 --- a/booking.helper.inc +++ b/booking.helper.inc @@ -1061,7 +1061,7 @@ function _booking_amount_owing($person, $amount_paid = 0, $include_fees = TRUE) * @param $balance_payment - boolean to indicate if this transaction was to complete a payment * @return nothing */ -function _booking_process_payment($person, $payment_amount, $balance_payment) { +function _booking_process_person_payment($person, $payment_amount, $balance_payment) { global $event; //calculate their total payment amount diff --git a/booking.paypal.inc b/booking.paypal.inc index a59dbcb..8806396 100644 --- a/booking.paypal.inc +++ b/booking.paypal.inc @@ -104,11 +104,11 @@ function booking_paypal_ipn() { } //Insert record into database and remove temporary booking id field from user - _booking_process_payment($ipn); + _booking_store_paypal_payment($ipn); } -function _booking_process_payment($data) { +function _booking_store_paypal_payment($data) { global $event; $balance_payment = false; $amount_owing = 0; @@ -167,7 +167,7 @@ function _booking_process_payment($data) { if ($person) { watchdog('booking', 'Found matching user with node id: !id; event id: !eid; existing payment !payment', array('!id' => $nid, '!eid' => $eid, '!payment' => $person->booking_amount_paid)); - _booking_process_payment($person, $data['mc_gross'], $balance_payment); + _booking_process_person_payment($person, $data['mc_gross'], $balance_payment); } else { //couldn't find a matching nid for this invoice diff --git a/booking.stripe.inc b/booking.stripe.inc index 623a964..bfc49a1 100644 --- a/booking.stripe.inc +++ b/booking.stripe.inc @@ -298,7 +298,7 @@ function _booking_process_stripe_payment($charge) { if ($person) { watchdog('booking', 'Found matching user with node id: !id; event id: !eid; existing payment !payment', array('!id' => $nid, '!eid' => $eid, '!payment' => $person->booking_amount_paid)); - _booking_process_payment($person, $gross_amount, $balance_payment); + _booking_process_person_payment($person, $gross_amount, $balance_payment); } else { //couldn't find a matching nid for this invoice