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

@@ -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