diff --git a/src/MercadoPago/Entity.php b/src/MercadoPago/Entity.php index af602752..fd85923d 100755 --- a/src/MercadoPago/Entity.php +++ b/src/MercadoPago/Entity.php @@ -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 *