Skip to content

Commit

Permalink
Update causes of process_error_body method (#349)
Browse files Browse the repository at this point in the history
  • Loading branch information
rhames07 authored May 12, 2022
1 parent 4066b14 commit 3c16761
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MercadoPago/Generic/SearchResultsArray.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
Expand Down

0 comments on commit 3c16761

Please sign in to comment.