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