Skip to content

Commit

Permalink
fix: Added return
Browse files Browse the repository at this point in the history
  • Loading branch information
Zastinian committed Jul 23, 2024
1 parent aa8b281 commit 7cd0ff1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions extensions/Gateways/MercadoPago/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 7cd0ff1

Please sign in to comment.