Paypal error handling
This commit is contained in:
@@ -58,11 +58,11 @@ function booking_paypal_ipn() {
|
||||
|
||||
//verify the notification with paypal
|
||||
if(!_booking_paypal_ipn_verify($ipn)) {
|
||||
watchdog('booking', 'Payment verification did not succeed. Retrying.');
|
||||
watchdog('booking_paypal', 'Payment verification did not succeed. Retrying.');
|
||||
if(!_booking_paypal_ipn_verify($ipn)) {
|
||||
return;
|
||||
} else {
|
||||
watchdog('booking', 'Payment verification succeeded on second attempt.');
|
||||
watchdog('booking_paypal', 'Payment verification succeeded on second attempt.');
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user