mirror of
https://github.com/Znote/ZnoteAAC.git
synced 2025-05-07 06:39:22 +02:00
Merge pull request #253 from gpedro/patch-2
[pagseguro] fix undefined variable
This commit is contained in:
commit
ab72a725a2
@ -73,8 +73,8 @@
|
|||||||
|
|
||||||
$rawPayment = VerifyPagseguroIPN($notificationCode);
|
$rawPayment = VerifyPagseguroIPN($notificationCode);
|
||||||
$payment = simplexml_load_string($rawPayment);
|
$payment = simplexml_load_string($rawPayment);
|
||||||
$paymentStatus = (int) $paymentStatus;
|
$paymentStatus = (int) $payment->status;
|
||||||
$paymentCode = sanitize($paymentCode);
|
$paymentCode = sanitize($payment->code);
|
||||||
|
|
||||||
report($notificationCode, $rawPayment);
|
report($notificationCode, $rawPayment);
|
||||||
|
|
||||||
@ -111,4 +111,4 @@
|
|||||||
} else if ($paymentStatus == 7) {
|
} else if ($paymentStatus == 7) {
|
||||||
mysql_update('UPDATE `znote_pagseguro` SET `completed` = 1 WHERE `transaction` = \'' . $paymentCode . '\' ');
|
mysql_update('UPDATE `znote_pagseguro` SET `completed` = 1 WHERE `transaction` = \'' . $paymentCode . '\' ');
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user