Skip to content

Commit

Permalink
corrigindo tratamento de erro preapproval (#286)
Browse files Browse the repository at this point in the history
  • Loading branch information
felipeminello authored Sep 8, 2022
1 parent 8389608 commit 27a67af
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/MercadoPago/Entity.php
Original file line number Diff line number Diff line change
Expand Up @@ -265,16 +265,16 @@ public function save($options = [])
function process_error_body($message){
$recuperable_error = new RecuperableError(
$message['message'],
$message['error'],
(isset($message['error']) ? $message['error'] : ''),
$message['status']
);

if(isset($message['cause']))
if (isset($message['cause'])) {
$recuperable_error->proccess_causes($message['cause']);

}
$this->error = $recuperable_error;
}


/**
* @param $name
*
Expand Down

0 comments on commit 27a67af

Please sign in to comment.