diff --git a/Cielo.class.php b/Cielo.class.php index 5fd351f..1817c52 100644 --- a/Cielo.class.php +++ b/Cielo.class.php @@ -1,9 +1,9 @@ nodeValue; } - // Se n�o ocorreu erro exibe par�metros - if (isset($retorno_codigo_erro) || $retorno_codigo_erro == '') { + // Se nao ocorreu erro exibe parametros + if (!isset($retorno_codigo_erro) || $retorno_codigo_erro == '') { $return['status'] = true; $return['retorno_tid'] = $retorno_tid; @@ -451,8 +451,8 @@ public function autorizaTransacao($tid = null) $retorno_url_autenticacao = $nodeURLAutenticacao->nodeValue; } - // Se n�o ocorreu erro exibe par�metros - if (isset($retorno_codigo_erro) || $retorno_codigo_erro == '') { + // Se nao ocorreu erro exibe parametros + if (!isset($retorno_codigo_erro) || $retorno_codigo_erro == '') { $return['return'] = true; $return['retorno_tid'] = $retorno_tid; $return['retorno_pan'] = $retorno_pan; @@ -628,7 +628,7 @@ public function consultaTransacao($tid = null) } // Se nao ocorreu erro exibe parametros - if (isset($retorno_codigo_erro) || $retorno_codigo_erro == '') { + if (!isset($retorno_codigo_erro) || $retorno_codigo_erro == '') { // - transacao $return['status'] = true; $return['retorno_tid'] = $retorno_tid; @@ -775,8 +775,8 @@ public function cancelaTransacao($tid = null) } // Se não ocorreu erro exibe parâmetros - if ($retorno_codigo_erro == '') { - $return['status'] = true; + if (!isset($retorno_codigo_erro) || $retorno_codigo_erro == '') { + $return['status'] = true; // - Transacao $return['retorno_tid'] = $retorno_tid;