• Resolved gustavojosemelo

    (@gustavojosemelo)


    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

    (@coffeecodetech)

    @gustavojosemelo, bom dia!

    Poderia nos confirmar as seguintes informa??es:

    1. Essas chaves já funcionaram antes?
    2. Consegue nos informar se o problema persiste?

    Obrigado!

    Thread Starter gustavojosemelo

    (@gustavojosemelo)

    Essas chaves foram passadas pela Getnet. Configurei as URLs de Callback no painel, quando tento fazer teste com Cart?o ele me retorna “Indefinido” e com PIX n?o vai de jeito nenhum, nem no ambiente de Homologa??o e nem Produ??o.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Erro ao Gerar PIX’ is closed to new replies.