• I’m getting this error:

    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, WC_Gateway_COD->process_payment, WC_Order->update_status, WC_Order->save, WC_Order->status_transition, do_action('woocommerce_order_status_pending_to_processing'), WP_Hook->do_action, WP_Hook->apply_filters, WC_Emails::send_transactional_email, do_action_ref_array('woocommerce_order_status_pending_to_processing_notification'), WP_Hook->do_action, WP_Hook->apply_filters, WC_Email_Customer_Processing_Order->trigger, WC_Email->get_content, WC_Email_Customer_Processing_Order->get_content_html, wc_get_template_html, wc_get_template, include('/plugins/kadence-woocommerce-email-designer/templates/woo/emails/customer-processing-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/kadence-woocommerce-email-designer/templates/woo/emails/email-order-details.php'), do_action('woocommerce_email_after_order_table'), WP_Hook->do_action, WP_Hook->apply_filters, WC_Pagarme_Banking_Ticket_Gateway->email_instructions, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0.

    How to solve this?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hey,
    Are you seeing this in the customizer? If so it likely means you need to select a real order and not the mockup order because your payment gateway is looking for specific information that they are adding to the orders on your site.

    Ben

    Thread Starter rogeriodec

    (@rogeriodec)

    I’m no longer tweaking the customizer, this is appearing on the production site, probably during a purchase.

    ok, this plugin doesn’t edit the order or action woocommerce_email_after_order_table so if you are getting this while in production it likely means your payment gateway is not up to date with the latest woocommerce. Have you tried deactivating this plugin to see if you get the same results?

    Ben

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘payment_method was called incorrectly’ is closed to new replies.