Title: error pix
Last modified: May 9, 2024

---

# error pix

 *  Resolved [andersontech](https://wordpress.org/support/users/andersontech/)
 * (@andersontech)
 * [2 years ago](https://wordpress.org/support/topic/error-pix/)
 * Estou recebendo um erro ao tentar fazer o pagamento com PIX, tanto em produção
   quanto em homologação:
 * Uncaught TypeError: WcGetnet\Services\WcGetnetPayment::get_auth_token(): Return
   value must be of type string, null returned in /usr/local/lsws/oncofre/html/wp-
   content/plugins/wc-checkout-getnet/app/src/Services/WcGetnetPayment.php:67 CONTEXT:{“
   error”:{“type”:1,”file”:”\/usr\/local\/lsws\/oncofre\/html\/wp-content\/plugins\/
   wc-checkout-getnet\/app\/src\/Services\/WcGetnetPayment.php”,”line”:67},”backtrace”:[“”,”#
   0 \/usr\/local\/lsws\/oncofre\/html\/wp-content\/plugins\/wc-checkout-getnet\/
   app\/src\/Services\/WcGetnetApi.php(159): WcGetnet\\Services\\WcGetnetPayment::
   get_auth_token()”,”#1 \/usr\/local\/lsws\/oncofre\/html\/wp-content\/plugins\/
   wc-checkout-getnet\/app\/src\/Services\/WcGetnetApi.php(112): WcGetnet\\Services\\
   WcGetnetApi->get_header()”,”#2 \/usr\/local\/lsws\/oncofre\/html\/wp-content\/
   plugins\/wc-checkout-getnet\/app\/src\/WooCommerce\/GateWays\/WcGetnet_Pix.php(
   187): WcGetnet\\Services\\WcGetnetApi->send_request_post_v2()”,”#3 \/usr\/local\/
   lsws\/oncofre\/html\/wp-content\/plugins\/woocommerce\/includes\/class-wc-checkout.
   php(1058): WcGetnet\\WooCommerce\\GateWays\\WcGetnet_Pix->process_payment()”,”#
   4 \/usr\/local\/lsws\/oncofre\/html\/wp-content\/plugins\/woocommerce\/includes\/
   class-wc-checkout.php(1287): WC_Checkout->process_order_payment()”,”#5 \/usr\/
   local\/lsws\/oncofre\/html\/wp-content\/plugins\/woocommerce\/includes\/class-
   wc-ajax.php(508): WC_Checkout->process_checkout()”,”#6 \/usr\/local\/lsws\/oncofre\/
   html\/wp-includes\/class-wp-hook.php(324): WC_AJAX::checkout()”,”#7 \/usr\/local\/
   lsws\/oncofre\/html\/wp-includes\/class-wp-hook.php(348): WP_Hook->apply_filters()”,”#
   8 \/usr\/local\/lsws\/oncofre\/html\/wp-includes\/plugin.php(517): WP_Hook->do_action()”,”#
   9 \/usr\/local\/lsws\/oncofre\/html\/wp-content\/plugins\/woocommerce\/includes\/
   class-wc-ajax.php(96): do_action()”,”#10 \/usr\/local\/lsws\/oncofre\/html\/wp-
   includes\/class-wp-hook.php(324): WC_AJAX::do_wc_ajax()”,”#11 \/usr\/local\/lsws\/
   oncofre\/html\/wp-includes\/class-wp-hook.php(348): WP_Hook->apply_filters()”,”#
   12 \/usr\/local\/lsws\/oncofre\/html\/wp-includes\/plugin.php(517): WP_Hook->
   do_action()”,”#13 \/usr\/local\/lsws\/oncofre\/html\/wp-includes\/template-loader.
   php(13): do_action()”,”#14 \/usr\/local\/lsws\/oncofre\/html\/wp-blog-header.
   php(19): require_once(‘…’)”,”#15 \/usr\/local\/lsws\/oncofre\/html\/index.php(
   17): require(‘…’)”,”#16 {main}”,”thrown”]}

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

 *  Plugin Author [Coffee Code Tech](https://wordpress.org/support/users/coffeecodetech/)
 * (@coffeecodetech)
 * [2 years ago](https://wordpress.org/support/topic/error-pix/#post-17750986)
 * [@andersontech](https://wordpress.org/support/users/andersontech/),
 * Aparentemente é algum problema no token, consegue enviar para o email [contact@coffee-code.tech](https://wordpress.org/support/topic/error-pix/contact@coffee-code.tech?output_format=md)
   com os logs de geração de token por gentileza?
 * Obrigado!
    -  This reply was modified 2 years ago by [Coffee Code Tech](https://wordpress.org/support/users/coffeecodetech/).
 *  Plugin Author [Coffee Code Tech](https://wordpress.org/support/users/coffeecodetech/)
 * (@coffeecodetech)
 * [2 years ago](https://wordpress.org/support/topic/error-pix/#post-17751897)
 * [@andersontech](https://wordpress.org/support/users/andersontech/) , você consegue
   confirmar junto a getnet se tem contratado o  **e-commerce Getpay Avançado**?

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

The topic ‘error pix’ is closed to new replies.

 * ![](https://ps.w.org/wc-checkout-getnet/assets/icon-128x128.png?rev=3369990)
 * [CoffeeCode - Checkout for Getnet and WooCommerce](https://wordpress.org/plugins/wc-checkout-getnet/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wc-checkout-getnet/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wc-checkout-getnet/)
 * [Active Topics](https://wordpress.org/support/plugin/wc-checkout-getnet/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wc-checkout-getnet/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wc-checkout-getnet/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Coffee Code Tech](https://wordpress.org/support/users/coffeecodetech/)
 * Last activity: [2 years ago](https://wordpress.org/support/topic/error-pix/#post-17751897)
 * Status: resolved