Hi there,
I have noticed that some orders are currently marked as “Pending Payment” on the WooCommerce order dashboard, but these orders do not appear at all in Klarna. I suspect that the customers might not have completed the payment process through Klarna.
As a result, I still have these orders pending in WooCommerce. Is there a way to automatically convert such orders to “Cancelled” after a certain amount of time if the payment is not completed?
Additionally, does Klarna set a maximum time limit for customers to complete their orders before they are automatically cancelled?
Thank you!
]]>Hello. On every product page view I got errors:
PHP Deprecated: Callables of the form [“Krokedil\KlarnaOnsiteMessaging\Pages\Product”, “Krokedil\KlarnaOnsiteMessaging\Pages\Page::display_placement”] are deprecated in class-wp-hook.php on
]]>Getting loads of these error messages since last update
Invalid argument supplied for foreach() in /xxxxx/xxxx/wp-content/plugins/klarna-payments-for-woocommerce/vendor/krokedil/woocommerce/src/Compatibility/Giftcards/PWGiftCards.php on line 20
Any thoughts ?
Seems to be related to gift cards ( which we don’t use)
]]>Hi,
we are using an ERP-system which is connected to woocommerce via API. We are managing all our orders in the ERP. The ERP is also syncing the order status via API, so if an order is send out it sets the status of the order at woocommerce to ?Completed“ via API.
However, the plugin does not recognize this status change, because when I log into woocommerce and want to refund the order, we get the following message:
“Klarna order has not been captured and cannot be refunded.“
But the status is set to ?Completed“ and also the Klarna Order Management widget shows:
Klarna Environment:?Production
Klarna order status:?CAPTURED
Initial Payment method:?Direct Debit
When I manually change the status back to ?Processing“ and then to ?Completed“ again, I can successfully refund the order.
TLDR, can you change the code of the plugin in a was such that it can also recognize status changes via API?
Thanks!
]]>Hello.
Unfortunately, even with the docs, I don’t understand 100% what a function in the plugin does.
Under what circumstances should I enable or disable Force Capture Full Order?
What exactly does this functionality do?
(We have connected other systems to our shop. e.g. Billbee.)
Hello.
I read the plugin page. But it’s pretty vague, I can’t imagine what the plugin does exactly.
I also read the official website – https://krokedil.com/product/klarna-order-management/.
- Activate, cancel, update and refund your orders in Klarna directly from WooCommerce.
- You save time as you don’t have to work in two systems simultaneously.
That gives some more information.
I should transfer any information from the WooCommerce backend to Klarna.
What exactly is it about?
And do you really have to do it manually?
I’m wondering if/why I have to set/sync something manually in Klarna. If WooCommerce receives an order with a refund, this refund information can be automatically communicated to Klarna, I would expect.
Maybe you can help me understand in which cases I have to operate the plugin manually.
(We currently have a lot automated in the shop. We want to keep manual effort as low as possible. That’s why we ask before we install Klarna.)
Greetings
Robert
Hey,
Before you create a new topic there are a couple of things that can be good to know as there are several ways to how you can find the answers to your questions:
Klarna Order Management for WooCommerce
www.ads-software.com – Support forum
This is a community forum and we as plugin authors are doing our best to help out and solve all issues posted here as soon as possible.
Since this is a forum, someone else might have had the same issue before and there could be a solution posted already. Do not forget to search the forum before you post your issue, this could save you time.
Remember to NEVER post any sensitive information in the forum. The best thing is to get in direct contact with us through our support form we mention below.
Krokedil.com – Support form
Helpful information before you contact us can be found in the How to prepare a support ticket article.
You can use the support form on krokedil.com to get help from our team.
Product page
Information regarding the plugin can be found here
Tips & Tricks – Knowledge
Useful blog posts with tips & tricks around the plugin.
Documentation
In our documentation you can find useful information like how you setup Klarna Checkout, Video guides, FAQ etc.
If you find a bug
If you have found a bug in our software please report that to us through Github.
I recently enabled HPOS on our Woocommerce store and noticed when an admin goes to create an order on the back-end, the system has a fatal error and it appears to be attributed to the Klarna Order Management plugin. I did a few tests. I left HPOS enabled but disabled the compatibility with the table sync and it did a fatal error again when creating an order form the admin side. I then disabled HPOS and enabled compatibility sync and it worked creating an order.
]]>Hello, I am contacting all plugin authors to double check that the plugins we use are compatible with the pending release of Woocommerce HPOS tables.
Can you confirm that Klarna Order Management for WooCommerce is compatible?
Kind regards
Sam
Hi there,
Since about 3 weeks ago we’ve noticed that orders on our woocommerce site paid with klarna won’t capture when set the status to Complete and instead when we set the order to complete the site crashes
There has been a critical error on this website. Please check your site admin email inbox for instructions.
Learn more about troubleshooting WordPress.
I’m exactly sure when this problem started and why it’s happening. Here is a log of fatal error though
2023-05-23T15:22:30+00:00 CRITICAL Uncaught TypeError: key(): Argument #1 ($array) must be of type array, bool given in /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-content/plugins/klarna-order-management-for-woocommerce/classes/class-wc-klarna-logger.php:92
Stack trace:
#0 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-content/plugins/klarna-order-management-for-woocommerce/classes/class-wc-klarna-logger.php(92): key()
#1 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-content/plugins/klarna-order-management-for-woocommerce/classes/class-wc-klarna-logger.php(73): WC_Klarna_Logger::get_stack()
#2 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-content/plugins/klarna-order-management-for-woocommerce/classes/request/class-kom-request.php(357): WC_Klarna_Logger::format_log()
#3 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-content/plugins/klarna-order-management-for-woocommerce/classes/request/class-kom-request.php(312): KOM_Request->log_response()
#4 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-content/plugins/klarna-order-management-for-woocommerce/classes/request/class-kom-request.php(167): KOM_Request->process_response()
#5 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-content/plugins/klarna-order-management-for-woocommerce/klarna-order-management-for-woocommerce.php(511): KOM_Request->request()
#6 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-content/plugins/klarna-order-management-for-woocommerce/klarna-order-management-for-woocommerce.php(364): WC_Klarna_Order_Management->retrieve_klarna_order()
#7 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-includes/class-wp-hook.php(310): WC_Klarna_Order_Management->capture_klarna_order()
#8 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
#9 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
#10 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-content/plugins/woocommerce/includes/class-wc-order.php(387): do_action()
#11 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-content/plugins/woocommerce/includes/class-wc-order.php(245): WC_Order->status_transition()
#12 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-data.php(699): WC_Order->save()
#13 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-includes/class-wp-hook.php(310): WC_Meta_Box_Order_Data::save()
#14 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
#15 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
#16 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-meta-boxes.php(258): do_action()
#17 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-includes/class-wp-hook.php(310): WC_Admin_Meta_Boxes->save_meta_boxes()
#18 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
#19 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
#20 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-includes/post.php(4715): do_action()
#21 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-includes/post.php(4817): wp_insert_post()
#22 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-admin/includes/post.php(439): wp_update_post()
#23 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-admin/post.php(227): edit_post()
#24 {main}
thrown in /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-content/plugins/klarna-order-management-for-woocommerce/classes/class-wc-klarna-logger.php on line 92
2023-05-23T16:03:08+00:00 CRITICAL Uncaught TypeError: key(): Argument #1 ($array) must be of type array, bool given in /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-content/plugins/klarna-order-management-for-woocommerce/classes/class-wc-klarna-logger.php:92
Stack trace:
#0 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-content/plugins/klarna-order-management-for-woocommerce/classes/class-wc-klarna-logger.php(92): key()
#1 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-content/plugins/klarna-order-management-for-woocommerce/classes/class-wc-klarna-logger.php(73): WC_Klarna_Logger::get_stack()
#2 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-content/plugins/klarna-order-management-for-woocommerce/classes/request/class-kom-request.php(357): WC_Klarna_Logger::format_log()
#3 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-content/plugins/klarna-order-management-for-woocommerce/classes/request/class-kom-request.php(312): KOM_Request->log_response()
#4 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-content/plugins/klarna-order-management-for-woocommerce/classes/request/class-kom-request.php(167): KOM_Request->process_response()
#5 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-content/plugins/klarna-order-management-for-woocommerce/klarna-order-management-for-woocommerce.php(511): KOM_Request->request()
#6 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-content/plugins/klarna-order-management-for-woocommerce/klarna-order-management-for-woocommerce.php(364): WC_Klarna_Order_Management->retrieve_klarna_order()
#7 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-includes/class-wp-hook.php(310): WC_Klarna_Order_Management->capture_klarna_order()
#8 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
#9 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
#10 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-content/plugins/woocommerce/includes/class-wc-order.php(387): do_action()
#11 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-content/plugins/woocommerce/includes/class-wc-order.php(245): WC_Order->status_transition()
#12 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-data.php(699): WC_Order->save()
#13 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-includes/class-wp-hook.php(310): WC_Meta_Box_Order_Data::save()
#14 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
#15 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
#16 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-meta-boxes.php(258): do_action()
#17 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-includes/class-wp-hook.php(310): WC_Admin_Meta_Boxes->save_meta_boxes()
#18 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
#19 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
#20 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-includes/post.php(4715): do_action()
#21 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-includes/post.php(4817): wp_insert_post()
#22 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-admin/includes/post.php(439): wp_update_post()
#23 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-admin/post.php(227): edit_post()
#24 {main}
thrown in /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-content/plugins/klarna-order-management-for-woocommerce/classes/class-wc-klarna-logger.php on line 92
2023-05-23T16:03:53+00:00 CRITICAL Uncaught TypeError: key(): Argument #1 ($array) must be of type array, bool given in /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-content/plugins/klarna-order-management-for-woocommerce/classes/class-wc-klarna-logger.php:92
Stack trace:
#0 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-content/plugins/klarna-order-management-for-woocommerce/classes/class-wc-klarna-logger.php(92): key()
#1 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-content/plugins/klarna-order-management-for-woocommerce/classes/class-wc-klarna-logger.php(73): WC_Klarna_Logger::get_stack()
#2 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-content/plugins/klarna-order-management-for-woocommerce/classes/request/class-kom-request.php(357): WC_Klarna_Logger::format_log()
#3 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-content/plugins/klarna-order-management-for-woocommerce/classes/request/class-kom-request.php(312): KOM_Request->log_response()
#4 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-content/plugins/klarna-order-management-for-woocommerce/classes/request/class-kom-request.php(167): KOM_Request->process_response()
#5 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-content/plugins/klarna-order-management-for-woocommerce/klarna-order-management-for-woocommerce.php(511): KOM_Request->request()
#6 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-content/plugins/klarna-order-management-for-woocommerce/klarna-order-management-for-woocommerce.php(364): WC_Klarna_Order_Management->retrieve_klarna_order()
#7 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-includes/class-wp-hook.php(310): WC_Klarna_Order_Management->capture_klarna_order()
#8 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
#9 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
#10 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-content/plugins/woocommerce/includes/class-wc-order.php(387): do_action()
#11 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-content/plugins/woocommerce/includes/class-wc-order.php(245): WC_Order->status_transition()
#12 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-data.php(699): WC_Order->save()
#13 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-includes/class-wp-hook.php(310): WC_Meta_Box_Order_Data::save()
#14 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
#15 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
#16 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-meta-boxes.php(258): do_action()
#17 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-includes/class-wp-hook.php(310): WC_Admin_Meta_Boxes->save_meta_boxes()
#18 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
#19 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
#20 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-includes/post.php(4715): do_action()
#21 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-includes/post.php(4817): wp_insert_post()
#22 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-admin/includes/post.php(439): wp_update_post()
#23 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-admin/post.php(227): edit_post()
#24 {main}
thrown in /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-content/plugins/klarna-order-management-for-woocommerce/classes/class-wc-klarna-logger.php on line 92
2023-05-23T16:05:31+00:00 CRITICAL Uncaught TypeError: key(): Argument #1 ($array) must be of type array, bool given in /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-content/plugins/klarna-order-management-for-woocommerce/classes/class-wc-klarna-logger.php:92
Stack trace:
#0 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-content/plugins/klarna-order-management-for-woocommerce/classes/class-wc-klarna-logger.php(92): key()
#1 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-content/plugins/klarna-order-management-for-woocommerce/classes/class-wc-klarna-logger.php(73): WC_Klarna_Logger::get_stack()
#2 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-content/plugins/klarna-order-management-for-woocommerce/classes/request/class-kom-request.php(357): WC_Klarna_Logger::format_log()
#3 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-content/plugins/klarna-order-management-for-woocommerce/classes/request/class-kom-request.php(312): KOM_Request->log_response()
#4 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-content/plugins/klarna-order-management-for-woocommerce/classes/request/class-kom-request.php(167): KOM_Request->process_response()
#5 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-content/plugins/klarna-order-management-for-woocommerce/klarna-order-management-for-woocommerce.php(511): KOM_Request->request()
#6 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-content/plugins/klarna-order-management-for-woocommerce/klarna-order-management-for-woocommerce.php(364): WC_Klarna_Order_Management->retrieve_klarna_order()
#7 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-includes/class-wp-hook.php(310): WC_Klarna_Order_Management->capture_klarna_order()
#8 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
#9 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
#10 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-content/plugins/woocommerce/includes/class-wc-order.php(387): do_action()
#11 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-content/plugins/woocommerce/includes/class-wc-order.php(245): WC_Order->status_transition()
#12 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-data.php(699): WC_Order->save()
#13 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-includes/class-wp-hook.php(310): WC_Meta_Box_Order_Data::save()
#14 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
#15 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
#16 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-meta-boxes.php(258): do_action()
#17 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-includes/class-wp-hook.php(310): WC_Admin_Meta_Boxes->save_meta_boxes()
#18 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
#19 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
#20 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-includes/post.php(4715): do_action()
#21 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-includes/post.php(4817): wp_insert_post()
#22 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-admin/includes/post.php(439): wp_update_post()
#23 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-admin/post.php(227): edit_post()
#24 {main}
thrown in /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-content/plugins/klarna-order-management-for-woocommerce/classes/class-wc-klarna-logger.php on line 92
2023-05-23T16:08:59+00:00 CRITICAL Uncaught TypeError: key(): Argument #1 ($array) must be of type array, bool given in /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-content/plugins/klarna-order-management-for-woocommerce/classes/class-wc-klarna-logger.php:92
Stack trace:
#0 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-content/plugins/klarna-order-management-for-woocommerce/classes/class-wc-klarna-logger.php(92): key()
#1 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-content/plugins/klarna-order-management-for-woocommerce/classes/class-wc-klarna-logger.php(73): WC_Klarna_Logger::get_stack()
#2 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-content/plugins/klarna-order-management-for-woocommerce/classes/request/class-kom-request.php(357): WC_Klarna_Logger::format_log()
#3 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-content/plugins/klarna-order-management-for-woocommerce/classes/request/class-kom-request.php(312): KOM_Request->log_response()
#4 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-content/plugins/klarna-order-management-for-woocommerce/classes/request/class-kom-request.php(167): KOM_Request->process_response()
#5 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-content/plugins/klarna-order-management-for-woocommerce/klarna-order-management-for-woocommerce.php(511): KOM_Request->request()
#6 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-content/plugins/klarna-order-management-for-woocommerce/klarna-order-management-for-woocommerce.php(364): WC_Klarna_Order_Management->retrieve_klarna_order()
#7 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-includes/class-wp-hook.php(310): WC_Klarna_Order_Management->capture_klarna_order()
#8 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
#9 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
#10 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-content/plugins/woocommerce/includes/class-wc-order.php(387): do_action()
#11 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-content/plugins/woocommerce/includes/class-wc-order.php(245): WC_Order->status_transition()
#12 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-data.php(699): WC_Order->save()
#13 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-includes/class-wp-hook.php(310): WC_Meta_Box_Order_Data::save()
#14 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
#15 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
#16 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-meta-boxes.php(258): do_action()
#17 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-includes/class-wp-hook.php(310): WC_Admin_Meta_Boxes->save_meta_boxes()
#18 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
#19 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
#20 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-includes/post.php(4715): do_action()
#21 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-includes/post.php(4817): wp_insert_post()
#22 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-admin/includes/post.php(439): wp_update_post()
#23 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-admin/post.php(227): edit_post()
#24 {main}
thrown in /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-content/plugins/klarna-order-management-for-woocommerce/classes/class-wc-klarna-logger.php on line 92
2023-05-23T16:10:15+00:00 CRITICAL Uncaught TypeError: key(): Argument #1 ($array) must be of type array, bool given in /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-content/plugins/klarna-order-management-for-woocommerce/classes/class-wc-klarna-logger.php:92
Stack trace:
#0 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-content/plugins/klarna-order-management-for-woocommerce/classes/class-wc-klarna-logger.php(92): key()
#1 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-content/plugins/klarna-order-management-for-woocommerce/classes/class-wc-klarna-logger.php(73): WC_Klarna_Logger::get_stack()
#2 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-content/plugins/klarna-order-management-for-woocommerce/classes/request/class-kom-request.php(357): WC_Klarna_Logger::format_log()
#3 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-content/plugins/klarna-order-management-for-woocommerce/classes/request/class-kom-request.php(312): KOM_Request->log_response()
#4 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-content/plugins/klarna-order-management-for-woocommerce/classes/request/class-kom-request.php(167): KOM_Request->process_response()
#5 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-content/plugins/klarna-order-management-for-woocommerce/klarna-order-management-for-woocommerce.php(511): KOM_Request->request()
#6 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-content/plugins/klarna-order-management-for-woocommerce/klarna-order-management-for-woocommerce.php(364): WC_Klarna_Order_Management->retrieve_klarna_order()
#7 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-includes/class-wp-hook.php(310): WC_Klarna_Order_Management->capture_klarna_order()
#8 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
#9 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
#10 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-content/plugins/woocommerce/includes/class-wc-order.php(387): do_action()
#11 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-content/plugins/woocommerce/includes/class-wc-order.php(245): WC_Order->status_transition()
#12 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-data.php(699): WC_Order->save()
#13 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-includes/class-wp-hook.php(310): WC_Meta_Box_Order_Data::save()
#14 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
#15 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
#16 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-meta-boxes.php(258): do_action()
#17 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-includes/class-wp-hook.php(310): WC_Admin_Meta_Boxes->save_meta_boxes()
#18 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
#19 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
#20 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-includes/post.php(4715): do_action()
#21 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-includes/post.php(4817): wp_insert_post()
#22 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-admin/includes/post.php(439): wp_update_post()
#23 /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-admin/post.php(227): edit_post()
#24 {main}
thrown in /home/u434639240/domains/rapidscooter.co.uk/public_html/wp-content/plugins/klarna-order-management-for-woocommerce/classes/class-wc-klarna-logger.php on line 92
This is quite problematic as the orders don’t get captured on Klarna and instead we have to remember to manually do this.
Help is hugely appreciated
Kind regards
]]>Hi there,
A client or ours runs a multilanguage e-commerce website (with WPML) and uses Klarna Checkout on several languages of the site, including german, swedish, danish, etc. (We are also using the Klarna Checkout for WooCommerce plugin.) The client has multiple Klarna accounts and thus has different keys for each language.
In order for the checkout to work, currently we are using a WP filter in the step where the Klarna Checkout plugin fetches the credentials (kco_wc_credentials_from_session filter) to replace the keys based on the current WPML language, but we don’t have such an option for the Klarna Order Management plugin.
Based on the 1.7.1 version of the plugin, we are suggesting the following change to the KOM_Request class, line 275:
Instead of
return $options[ $key ];
we should have
return apply_filters( 'kom_auth_component', $options[ $key ], $component_name, $this->order_id );
Of course, the filter name is just a suggestion, but this would allow us to hook in and use the appropriate credentials that matches the language of the order.
Can you let us know if this change (or something very similar to this) can make it into the next minor release?
Thanks.
]]>Hi I’m having some problems with my link to Klarna – when I update an order to completed it’s stopped capturing them in Klarna. I’ve checked everything is set up correctly, my host has checked at their end and Klarna say it’s a developers issue?
]]>Hi,
We received a lot of orders that had “Failed to retrieve the order from Klarna.” status and we’re wondering how it happened as there were no error logs produced from our end.
We are using Klarna Checkout for WooCommerce (2.8.5), Klarna Order Management for WooCommerce (1.6.10) and WooCommerce (6.8.2) plugins to our site.
How is it possible that an order in WooCommerce is created but not in Klarna?
]]>Hello,
In our wp-options this is one of the largest tables which is being loaded on all our pages. Is it safe to just delete this folder, or the contents of it?
Thanks for explaining best way to do this…
]]>*SOLVED*
I did the refund status in the wrong order. The order wasn’t set on “completed” in woocommerce before I tried to refund it. All good now.
I’m trying to do direct refund in woocommerce but get the message that there’s an error when creating the repayment.
I’ve contacted the klarna support, they told me to contact woocommerce support. Maybe you have the answer for this issue?
The connection with Klarna is working.
]]>Ett fel uppstod n?r du f?rs?kte att skapa ?terbetalningen med betalningsgatewayen API.
Hello, your plugin says it has only been tested up to woocommerce 4.5.2!
Can you please confirm it is compatible with the latest version 5.0.0? It is good practice to update the compatible version.
Thanks.
]]>We use your plugin version 1.6.5, which I believe is the latest one, and noticed that changing order status to Completed stopped working for Klarna orders recently. Instead, the orders get the “On Hold” status with this error reported:
Could not capture Klarna order. ‘order_lines[0].type’ must not be null.
We conducted a research on that and found the following:
1. “‘order_lines[0].type’ must not be null.” error is actually coming from a Klarna API response to an order capture request.
2. Order capture API actually requires the “type” parameter for an order item: https://developers.klarna.com/api/#order-management-api__create-capture__order_lines__type.
3. Your plugin doesn’t provide the “type” parameter for product items in \WC_Klarna_Order_Management_Order_Lines::process_order_item_product method at includes/class-wc-klarna-order-management-order-lines.php:168.
public function process_order_item_product( $order_item, $order ) {
return array(
'reference' => $this->get_item_reference( $order_item ),
'name' => $this->get_item_name( $order_item ),
'quantity' => $this->get_item_quantity( $order_item ),
'unit_price' => $this->get_item_unit_price( $order_item ),
'tax_rate' => $this->get_item_tax_rate( $order, $order_item ),
'total_amount' => $this->get_item_total_amount( $order_item ),
'total_discount_amount' => $this->get_item_discount_amount( $order_item ),
'total_tax_amount' => $this->get_item_tax_amount( $order_item ),
);
}
Though the “type” parameter is provided for other item types like shipping fee, item fee, coupon, etc.
4. Adding type parameter fixes the issue:
public function process_order_item_product( $order_item, $order ) {
return array(
'reference' => $this->get_item_reference( $order_item ),
'type' => 'physical',
'name' => $this->get_item_name( $order_item ),
'quantity' => $this->get_item_quantity( $order_item ),
'unit_price' => $this->get_item_unit_price( $order_item ),
'tax_rate' => $this->get_item_tax_rate( $order, $order_item ),
'total_amount' => $this->get_item_total_amount( $order_item ),
'total_discount_amount' => $this->get_item_discount_amount( $order_item ),
'total_tax_amount' => $this->get_item_tax_amount( $order_item ),
);
}
So, I believe that until the recent times, Klarna API accepted missing “type” parameter for order items. I found successful capture requests logged in our store with missing “type” parameter for product items. Either they changed the API specification recently or just enforced a validation of the parameter.
Since we sell only physical goods, hardcoding “physical” type is OK for us. Though for a permanent fix, it would likely need to check the product type as there is a “digital” value supported, which seems matching virtual product type in WooCommerce product type system.
Could you please incorporate the fix into the next update?
]]>This is a brand new store using woocommerce (4.8.0) and woocommerce subscription (3.0.11) plugins. Also using Klarnas order management (1.6.5) and Klarna Checkout (2.4.0). We have processed more than 100 initial subscriptions and all orders are correctly listed in both the merchant portal and in woocommerce.
Now it is time for the first recurring payment. I tested with a test customer and found issues.
I am having a problem with recurring payments for subscriptions. The initial order works fine and I do get a payment and correct status changes through Klarna and a “Recurring token for subscription” correctly according to order notes in woocommerce. I have more than a hundred ongoing subscriptions (every 3 months) in the system that are up for next payments.
When the time comes for the next payment woocommerce creates a new order and tries to connect and comes up with an error note in the new order:
Prenumerationsbetalning misslyckad med Klarna. Meddelande: {
”error_code” : ”INVALID_OPERATION”,
”error_messages” : [ ”” ],
”correlation_id” : ”101aa053-XXXX-XXXX-XXXX-XXXXXXXXXXXX”
}
also the systems sends out a message to customers saying their payment failed.
I have checked that we do have the subscription feature turned on at Klarna for our store and tried contacting support to no avail. Multiple calls and emails with ticket numbers have been filed but no reply or mail back to me.
I am hoping someone here can shed some light on what can be done.
]]>Not sure where best, so put this into https://github.com/krokedil/klarna-order-management-for-woocommerce/issues/51 as well
if you have AvaTax,
Scenario is:
Have an order in processing (so thus at Klarna)
Bring order back to on-hold
Edit the order (remove an item)
Hit Recalculate (to recalculate taxes)
Change to Processing again
Hit Update to save
This sends it to Klarna – and it writes into order notes that the order is updated.
It correctly updates the items in Klarna, but the total amount doesn’t include the taxes anymore and the taxes line is zero’d out.
]]>I put this into GitHub as well – https://github.com/krokedil/klarna-order-management-for-woocommerce/issues/50 – not sure where best to file these. I tried to put notes on where the line at issue is.
Basically, after any capture/completed event, the taxes are no longer showing in Woo Admin (or on order tracking pages). They stay in AvaTax and in Klarna.
Happens on all environments – limited test environments as well as our production.
]]>I am trying to test the plugin on my EU playground environment.
Have put my test credentials for UK in but no payment forms appear at checkout.
in the log on my playground environment it shows error 400
error_code: BAD_VALUE
error_messages: Bad value: purchase_currency
your FAQ states
Your account at Klarna doesn’t seem to be configured for the currency used in your store. What currency did you select when you signed up with Klarna? If you need support, you should email your regions Klarna Merchant contact.
At no point did it ask me at sign up what currency the sandbox should be. In seller -> my store the purchase country is set to GBP.
WC version: 3.2.6
WP version: 5.4.2
Hi,
I was wondering if you could please help. I am having issues with Klarna refund whenever I submit a refund it shows ‘Could not create new refund’. Do you know what normally causes this issue.
Many Thanks,
Krystal
]]>Hi,
automatic activation of klarna orders no longer works since a major version update.
The options are all set correctly.
Has there been a change here?
Best,
Martin
Hello,
We see on the Klarna portal that the shipping information and tracking number is not passed to Klarna (so the customers can view this in their Klarna portal). Do you know how we can do this? Or is this not possible with WooCommerce?
Thanks
]]>Dear support team,
we are using Klarna Checkout on our Woocommerce shop -> https://www.kca-lab.com/shop
we also use the latest Klarna Order Management for WooCommerce version 1.4.0
at the order details page the ‘klarna order management’ widget does not show any actions in the drop-down menu.
There’s no cancel action or whatever action available.
how can we solve this issue?
thanks, greetings ??
& with best regards
Becki
]]>Hi, I noticed that from version 1.4.0 a daily log is being generated in the WC status section. The orders are processed correctly though, but not all Klarna orders are included and some are listed multiple times. I wonder why the log is generated and if it causes/shows any problems. I have a recent log saved as txt file, but can’t upload it here.
Thanks, JJ
]]>Hi,
I have a problem, when order is created in Klarna no order creates in Woocommerce. So, we have orders in Klarna but not in Woocommerce. Has Klarna order management and Klarna Checkout. What could I have done wrong?
Grateful for help!
Regards
]]>Dear Developers,
We are using Klarna Woocommerce Checkout plugin + Klarna Order Management for Woocommerce.
Our problem is that when we update status of a Klarna order from Woocommerce dashboard from on-hold to completed, it always goes back to being in on-hold status. Meaning we cannot change status of Klarna orders. This problem is only with Klarna orders and not regular orders.
Any help will be greatly appreciated ??
Here are details of our WordPress environment.
### WordPress Environment ###
WC Version: 3.6.2
WP Version: 5.1.1
WP Memory Limit: 2 GB
WP Debug Mode: ?
WP Cron: ?
Language: de_DE
External object cache: ?
### Server Environment ###
Server Info: Apache
PHP Version: 7.2.18
PHP Post Max Size: 1 GB
PHP Time Limit: 600
PHP Max Input Vars: 2000
cURL Version: 7.64.0
OpenSSL/1.0.2r
SUHOSIN Installed: –
MySQL Version: 5.5.5-10.1.40-MariaDB
Max Upload Size: 1 GB
Default Timezone is UTC: ?
fsockopen/cURL: ?
SoapClient: ?
DOMDocument: ?
GZip: ?
Multibyte String: ?
Remote Post: ?
Remote Get: ?
### Theme ###
WooCommerce Support: ?
### Klarna Checkout ###
Orders created via API callback: 0% (0 of 11) of all orders paid via Klarna Checkout were created via API callback during the last month. This is a fallback order creation feature. You should aim for 0%.