diff --git a/extensions/Gateways/MercadoPago/Controller.php b/extensions/Gateways/MercadoPago/Controller.php index 4429aaa..d6b1d18 100644 --- a/extensions/Gateways/MercadoPago/Controller.php +++ b/extensions/Gateways/MercadoPago/Controller.php @@ -161,6 +161,7 @@ public function ipn(Request $request) $client = new PaymentClient(); try { + if (!$request->get('data')) return false; if (!$request->get('data')['id']) return false; $payment = $client->get($request->get('data')['id']); Log::debug('[MercadoPago::ipn] Payment: ' . json_encode($payment));