From c02005b6c4247eb45359f1b1496e33cad8502508 Mon Sep 17 00:00:00 2001 From: Guilherme Cota <75252715+guilhermecotaGn@users.noreply.github.com> Date: Tue, 11 Jan 2022 08:39:57 -0300 Subject: [PATCH] Fix value get_custom_field_value($documentField) --- gerencianetcharge.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gerencianetcharge.php b/gerencianetcharge.php index ebdd269..ee27c45 100755 --- a/gerencianetcharge.php +++ b/gerencianetcharge.php @@ -327,7 +327,7 @@ function gerencianetcharge_link($params) /* ********************************************* Coleta os dados do cliente ************************************************* */ $clientId = $params['clientdetails']['id']; - $document = preg_replace("/[^0-9]/", "", get_custom_field_value((string)"CPF/CNPJ", $clientId)); + $document = preg_replace("/[^0-9]/", "", get_custom_field_value((string)$documentField, $clientId)); $corporateName = $params['clientdetails']['companyname']; $name = $params['clientdetails']['firstname'] . ' ' . $params['clientdetails']['lastname'];