From 3c167610d1f9cb262b736ef6e36cc7a81145f2ff Mon Sep 17 00:00:00 2001 From: Rhames Lima Date: Thu, 12 May 2022 12:47:40 -0300 Subject: [PATCH] Update causes of process_error_body method (#349) --- src/MercadoPago/Generic/SearchResultsArray.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MercadoPago/Generic/SearchResultsArray.php b/src/MercadoPago/Generic/SearchResultsArray.php index a2c56962..ba500a52 100644 --- a/src/MercadoPago/Generic/SearchResultsArray.php +++ b/src/MercadoPago/Generic/SearchResultsArray.php @@ -65,7 +65,7 @@ public function process_error_body($message){ $message['status'] ); - foreach ($message['cause'] as $causes) { + foreach ($message['causes'] as $causes) { if(is_array($causes)) { foreach ($causes as $cause) { $recuperable_error->add_cause($cause['code'], $cause['description']);