fix function names

This commit is contained in:
Nathan Coad
2016-07-22 09:06:52 +10:00
parent c0d2e11172
commit 6836f3bc00
3 changed files with 5 additions and 5 deletions

View File

@@ -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 * @param $balance_payment - boolean to indicate if this transaction was to complete a payment
* @return nothing * @return nothing
*/ */
function _booking_process_payment($person, $payment_amount, $balance_payment) { function _booking_process_person_payment($person, $payment_amount, $balance_payment) {
global $event; global $event;
//calculate their total payment amount //calculate their total payment amount

View File

@@ -104,11 +104,11 @@ function booking_paypal_ipn() {
} }
//Insert record into database and remove temporary booking id field from user //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; global $event;
$balance_payment = false; $balance_payment = false;
$amount_owing = 0; $amount_owing = 0;
@@ -167,7 +167,7 @@ function _booking_process_payment($data) {
if ($person) { if ($person) {
watchdog('booking', 'Found matching user with node id: !id; event id: !eid; existing payment !payment', 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)); 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 { else {
//couldn't find a matching nid for this invoice //couldn't find a matching nid for this invoice

View File

@@ -298,7 +298,7 @@ function _booking_process_stripe_payment($charge) {
if ($person) { if ($person) {
watchdog('booking', 'Found matching user with node id: !id; event id: !eid; existing payment !payment', 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)); 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 { else {
//couldn't find a matching nid for this invoice //couldn't find a matching nid for this invoice