Title: Erros no plugin
Last modified: July 15, 2021

---

# Erros no plugin

 *  Resolved [juliparaiso](https://wordpress.org/support/users/juliparaiso/)
 * (@juliparaiso)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/erros-no-plugin/)
 * Boa tarde, primeiramente, o plugin é ótimo e prático. Parabéns!!
    MAs vê, às 
   vezes, o cliente não consegue finalizar, fica gerando esse erro
 *     ```
       2021-07-15T11:15:37+00:00 CRITICAL Uncaught TypeError: Return value of VVerner\Getnet\API::fetchGetnetData() must be of the type array, null returned in plugins/vverner-getnet-gateway/app/controller/API.php:254
       Stack trace:
       #0 /plugins/vverner-getnet-gateway/app/controller/API.php(74): VVerner\Getnet\API->fetchGetnetData('v1/payments/cre...', Array)
       #1 plugins/vverner-getnet-gateway/app/controller/Getnet_Gateway.php(165): VVerner\Getnet\API->processPayment(Object(Automattic\WooCommerce\Admin\Overrides\Order), 1, Array)
       #2 /plugins/woocommerce/includes/class-wc-checkout.php(980): Getnet_Gateway->process_payment(1993)
       #3 /plugins/woocommerce/includes/class-wc-checkout.php(1195): WC_Checkout->process_order_payment(1993, 'getnet')
       #4 woocommerce/includes/class-wc-ajax.php(466): WC_Checkout->process_checkout()
       #5 vverner-getnet-gateway/app/controller/API.php, na linha 254
       ```
   
 * Como proceder?
 * Desde já agradeço
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferros-no-plugin%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [jlpetri](https://wordpress.org/support/users/jlpetri/)
 * (@jlpetri)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/erros-no-plugin/#post-14676153)
 * Estou tendo o mesmo problema no meu site, as vezes ocorre do pedido entrar no
   sistema como pagamento pendente. Já tive alguns casos dele entrar como pendente
   e no portal da GetNet o valor ser debitado do cartão mas não atualizar no site.
   
   A umas duas semanas começou aqui o problema. Muitos ligam também informando o
   erro DENY na tela, quando envio um link de pagamento o mesmo consegue efetuar
   sem problema.
 *  Plugin Author [Equipe da VVerner](https://wordpress.org/support/users/vverner/)
 * (@vverner)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/erros-no-plugin/#post-14678228)
 * [@juliparaiso](https://wordpress.org/support/users/juliparaiso/) esse erro é 
   quando a API não retorna nossos valores esperados. Tu tem algum log da hospedagem
   com algo informando como “timeout” ou algo do genero?
 * [@jlpetri](https://wordpress.org/support/users/jlpetri/) o erro “DENY” normalmente
   é causado pelo anti-fraude. É valido confirmar os valores das compras em seu 
   site (se são muito altas, por exemplo)
 *  [jlpetri](https://wordpress.org/support/users/jlpetri/)
 * (@jlpetri)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/erros-no-plugin/#post-14679980)
 * Pra mim os erros são estes:
 *     ```
       2021-07-16T17:03:11+00:00 CRITICAL Uncaught TypeError: Return value of VVerner\Getnet\API::fetchGetnetData() must be of the type array, null returned in /home/u355441484/domains/thermasdeolimpiasp.com.br/public_html/wp-content/plugins/vverner-getnet-gateway/app/controller/API.php:254
       Stack trace:
       #0 /home/u355441484/domains/thermasdeolimpiasp.com.br/public_html/wp-content/plugins/vverner-getnet-gateway/app/controller/API.php(74): VVerner\Getnet\API->fetchGetnetData('v1/payments/cre...', Array)
       #1 /home/u355441484/domains/thermasdeolimpiasp.com.br/public_html/wp-content/plugins/vverner-getnet-gateway/app/controller/Getnet_Gateway.php(165): VVerner\Getnet\API->processPayment(Object(Automattic\WooCommerce\Admin\Overrides\Order), 3, Array)
       #2 /home/u355441484/domains/thermasdeolimpiasp.com.br/public_html/wp-content/plugins/woocommerce/includes/class-wc-checkout.php(971): Getnet_Gateway->process_payment(8541)
       #3 /home/u355441484/domains/thermasdeolimpiasp.com.br/public_html/wp-content/plugins/woocommerce/includes/class-wc-checkout.php(1186): WC_Che, em /home/u355441484/domains/thermasdeolimpiasp.com.br/public_html/wp-content/plugins/vverner-getnet-gateway/app/controller/API.php, na linha 254
   
       2021-07-16T22:56:54+00:00 CRITICAL Uncaught TypeError: Return value of VVerner\Getnet\API::fetchGetnetData() must be of the type array, null returned in /home/u355441484/domains/thermasdeolimpiasp.com.br/public_html/wp-content/plugins/vverner-getnet-gateway/app/controller/API.php:254
       Stack trace:
       #0 /home/u355441484/domains/thermasdeolimpiasp.com.br/public_html/wp-content/plugins/vverner-getnet-gateway/app/controller/API.php(74): VVerner\Getnet\API->fetchGetnetData('v1/payments/cre...', Array)
       #1 /home/u355441484/domains/thermasdeolimpiasp.com.br/public_html/wp-content/plugins/vverner-getnet-gateway/app/controller/Getnet_Gateway.php(165): VVerner\Getnet\API->processPayment(Object(Automattic\WooCommerce\Admin\Overrides\Order), 3, Array)
       #2 /home/u355441484/domains/thermasdeolimpiasp.com.br/public_html/wp-content/plugins/woocommerce/includes/class-wc-checkout.php(980): Getnet_Gateway->process_payment(8545)
       #3 /home/u355441484/domains/thermasdeolimpiasp.com.br/public_html/wp-content/plugins/woocommerce/includes/class-wc-checkout.php(1195): WC_Che, em /home/u355441484/domains/thermasdeolimpiasp.com.br/public_html/wp-content/plugins/vverner-getnet-gateway/app/controller/API.php, na linha 254
       ```
   
 * E o DENY este:
 *     ```
       2021-07-19T11:44:28+00:00 ERROR Array
       (
           [message] => DENY
           [name] => CreditServiceError
           [status_code] => 402
           [details] => Array
               (
                   [0] => Array
                       (
                           [antifraud] => Array
                               (
                                   [code] => DENY
                                   [status_code] => 481
                                   [description] => Transacao negada.afpd!
                                   [transaction_token] => AxjzbwSTU7tpVwftu0+A/+YCTyxKjmqr2htXwSwXh0ky9GK63CYEMAAAJgEK
                                   [transaction_id] => 6266950661636750004096
                                   [transaction_reference_code] => 227e1fd0-823a-4215-9a8a-e9d91e8f8253
                                   [transaction_datetime] => 2021-07-19T11:44:28.334Z
                                   [device_fingerprint] => Array
                                       (
                                           [received] => 1
                                           [smartID] => f7cc451646e2488ba0fdd20e47518c61
                                       )
   
                               )
   
                           [brand] => mastercard
                           [payment_id] => 227e1fd0-823a-4215-9a8a-e9d91e8f8253
                       )
   
               )
   
       )
       ```
   
 * Os valores variam de 20 reais a mil reais as trasações. Algumas de valor baixo"
   100 reais" falham e as altas "800" ou mais passam sem problema.
    Imaginei ser
   o anti-fraude mesmo nesse caso, existe algo que posso fazer nessa questão ?
 *  Plugin Author [Equipe da VVerner](https://wordpress.org/support/users/vverner/)
 * (@vverner)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/erros-no-plugin/#post-14682490)
 * [@jlpetri](https://wordpress.org/support/users/jlpetri/) pior que quanto ao anti-
   fraude é um erro bem genérico mesmo. Na própria documentação não fala muito sobre
   ele [clique para ver a tabela de erros](https://developers.getnet.com.br/api#tag/Tabela-de-Erros)
 * Quanto aos erros críticos, só vai retonar null se a API não retornar nada, ou
   seja, a conexão for encerrada antes do recebimento das informações. De qualquer
   maneira colocarei no roadmap um tratamento neste erro
 *  Plugin Author [Equipe da VVerner](https://wordpress.org/support/users/vverner/)
 * (@vverner)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/erros-no-plugin/#post-14717327)
 * Como não tivemos mais resposta, estamos fechando este ticket

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Erros no plugin’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/vverner-getnet-gateway_cac8b6.svg)
 * [VVerner - Getnet Gateway](https://wordpress.org/plugins/vverner-getnet-gateway/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/vverner-getnet-gateway/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/vverner-getnet-gateway/)
 * [Active Topics](https://wordpress.org/support/plugin/vverner-getnet-gateway/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/vverner-getnet-gateway/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/vverner-getnet-gateway/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [Equipe da VVerner](https://wordpress.org/support/users/vverner/)
 * Last activity: [4 years, 8 months ago](https://wordpress.org/support/topic/erros-no-plugin/#post-14717327)
 * Status: resolved