Title: Error: payment_method was called incorrectly.
Last modified: December 20, 2022

---

# Error: payment_method was called incorrectly.

 *  [jhahiten](https://wordpress.org/support/users/jhahiten/)
 * (@jhahiten)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/error-payment_method-was-called-incorrectly/)
 * The Error Log shows problem associated with BIT payment Gateway Plugin.
 * Error:
 * [20-Dec-2022 17:36:14 UTC] 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_Bit_Gateway_Offline->process_payment, 
   Bit_Payment_Email->trigger, WC_Email->get_content, Bit_Payment_Email->get_content_html,
   wc_get_template, **include(‘/plugins/woo-bit-payment-gateway/templates/emails/
   bit-pending-payment-email.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_before_order_table’), WP_Hook->do_action, WP_Hook->apply_filters,
   WC_Paybox_Gateway_idbp->email_instructions, WC_Abstract_Legacy_Order->__get, 
   wc_doing_it_wrong. This message was added in version 3.0.

The topic ‘Error: payment_method was called incorrectly.’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/woo-bit-payment-gateway_a3d4d9.svg)
 * [Bit Payment Gateway for WooCommerce](https://wordpress.org/plugins/woo-bit-payment-gateway/)
 * [Support Threads](https://wordpress.org/support/plugin/woo-bit-payment-gateway/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-bit-payment-gateway/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-bit-payment-gateway/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-bit-payment-gateway/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [jhahiten](https://wordpress.org/support/users/jhahiten/)
 * Last activity: [3 years, 5 months ago](https://wordpress.org/support/topic/error-payment_method-was-called-incorrectly/)
 * Status: not resolved