fix function names
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user