diff --git a/modules/addons/NFEioServiceInvoices/callback.php b/modules/addons/NFEioServiceInvoices/callback.php index e446f50..75ab92e 100644 --- a/modules/addons/NFEioServiceInvoices/callback.php +++ b/modules/addons/NFEioServiceInvoices/callback.php @@ -21,6 +21,13 @@ exit(); } +// workaround para retornar status code 200 quando a requisição conter uma query iniciando em 'echo' (verificacao do webhook) +if (isset($_GET['echo'])) { + http_response_code(200); + echo "ok"; + exit(); +} + // armazena o cabecalho da requisição $headers = getallheaders();