Title: Payment_method was called incorrectly
Last modified: July 17, 2017

---

# Payment_method was called incorrectly

 *  Resolved [jpegtobbe](https://wordpress.org/support/users/jpegtobbe/)
 * (@jpegtobbe)
 * [9 years ago](https://wordpress.org/support/topic/payment_method-was-called-incorrectly/)
 * I noticed a couple of errors in my apache error-log. Is it WooCommerce that does
   something wrong or is it the Klarna payment plugin?
    The problem seams to be 
   when you mark an order as complete with the quick “complete button” on the order
   on the orders listing page “edit.php?post_type=shop_order”.
 * [Mon Jul 17 15:48:21.786182 2017] [:error] [pid 14305] [client xxx.xxx.xxx.xxx:
   41636] payment_method was called incorrectly. Order properties should not be 
   accessed directly. Backtrace: do_action(‘wp_ajax_woocommerce_mark_order_status’),
   WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::mark_order_status, WC_Order-
   >update_status, WC_Order->save, WC_Order->status_transition, do_action(‘woocommerce_order_status_completed’),
   WP_Hook->do_action, WP_Hook->apply_filters, WC_Gateway_Klarna_Order->activate_klarna_order,
   WC_Gateway_Klarna_Order->get_order_payment_method, WC_Abstract_Legacy_Order->
   __get, wc_doing_it_wrong. This message was added in version 3.0., referer: [http://www.xxxxxxxx.xxx/wp-admin/edit.php?post_type=shop_order](http://www.xxxxxxxx.xxx/wp-admin/edit.php?post_type=shop_order)
 * Woocommerce 3.0.9

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

 *  [kursora](https://wordpress.org/support/users/kursora/)
 * (@kursora)
 * [9 years ago](https://wordpress.org/support/topic/payment_method-was-called-incorrectly/#post-9328454)
 * Some plugin is not updated to work porperly with WooCommerce 3.x. (WC_Gateway_Klarna_Order?)
 *  Thread Starter [jpegtobbe](https://wordpress.org/support/users/jpegtobbe/)
 * (@jpegtobbe)
 * [9 years ago](https://wordpress.org/support/topic/payment_method-was-called-incorrectly/#post-9328558)
 * Ok thank you. I’ll let Klarna know about their plugin.

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

The topic ‘Payment_method was called incorrectly’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3640790)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [jpegtobbe](https://wordpress.org/support/users/jpegtobbe/)
 * Last activity: [9 years ago](https://wordpress.org/support/topic/payment_method-was-called-incorrectly/#post-9328558)
 * Status: resolved