payment_method was called incorrectly
-
Bom dia pessoal, cada vez que uma compra é efetuada no site, o pagar me emite diversos alertas (dezenas). O simples processo está tornando a finaliza??o do checkout mais lenta e prejudicando as compras, n?o bastando simplesmente desabilitar o debug do wordpress. Um dos alertas mais escabroso é este:
[05-Apr-2024 06:27:11 America/Sao_Paulo] payment_method was called incorrectly. Order properties should not be accessed directly. Backtrace: require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), do_action(‘template_redirect’), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::do_wc_ajax, do_action(‘wc_ajax_checkout’), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::checkout, WC_Checkout->process_checkout, WC_Checkout->process_order_payment, Woocommerce\Pagarme\Controller\Gateways\AbstractGateway->process_payment, Woocommerce\Pagarme\Model\Checkout->process, Woocommerce\Pagarme\Controller\Orders->create_order, Pagarme\Core\Kernel\Services\OrderService->createOrderAtPagarme, Pagarme\Core\Payment\Services\ResponseHandlers\OrderHandler->handle, Pagarme\Core\Payment\Services\ResponseHandlers\OrderHandler->handleOrderStatusPaid, Pagarme\Core\Payment\Services\ResponseHandlers\OrderHandler->completePayment, Pagarme\Core\Kernel\Services\OrderService->syncPlatformWith, Woocommerce\Pagarme\Concrete\WoocommercePlatformOrderDecorator->save, WC_Order->save, WC_Order->status_transition, do_action(‘woocommerce_order_status_completed’), WP_Hook->do_action, WP_Hook->apply_filters, WC_Emails::send_transactional_email, do_action_ref_array(‘woocommerce_order_status_completed_notification’), WP_Hook->do_action, WP_Hook->apply_filters, WC_Email_Customer_Completed_Order->trigger, WC_Email->get_content, WC_Email_Customer_Completed_Order->get_content_html, wc_get_template_html, wc_get_template, include(‘/plugins/woocommerce/templates/emails/customer-completed-order.php’), do_action(‘woocommerce_email_order_details’), WP_Hook->do_action, WP_Hook->apply_filters, WC_Emails->order_details, wc_get_template, include(‘/plugins/woocommerce/templates/emails/email-order-details.php’), do_action(‘woocommerce_email_after_order_table’), WP_Hook->do_action, WP_Hook->apply_filters, Woocommerce\Pagarme\Controller\Gateways\AbstractGateway->pagarme_email_payment_info, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0.
- You must be logged in to reply to this topic.