Merge pull request #253 from gpedro/patch-2

[pagseguro] fix undefined variable
This commit is contained in:
Stefan A. Brannfjell
2016-12-09 00:41:46 +01:00
committed by GitHub

View File

@@ -73,8 +73,8 @@
$rawPayment = VerifyPagseguroIPN($notificationCode);
$payment = simplexml_load_string($rawPayment);
$paymentStatus = (int) $paymentStatus;
$paymentCode = sanitize($paymentCode);
$paymentStatus = (int) $payment->status;
$paymentCode = sanitize($payment->code);
report($notificationCode, $rawPayment);