From 7cd0ff1c7a635a850e94ff5ff2059ebf9453116f Mon Sep 17 00:00:00 2001 From: Zastinian Date: Tue, 23 Jul 2024 10:36:26 -0600 Subject: [PATCH] fix: Added return --- extensions/Gateways/MercadoPago/Controller.php | 1 + 1 file changed, 1 insertion(+) 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));