Title: Creating payment object: type Order, first try failed:
Last modified: February 18, 2023

---

# Creating payment object: type Order, first try failed:

 *  Resolved [webframe](https://wordpress.org/support/users/webframe/)
 * (@webframe)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/creating-payment-object-type-order-first-try-failed/)
 * Unfortunately customers cannot pay with Klarna because they have the problem 
   that when they are redirected to “sofort.com” to pay, the message “An error has
   occurred. Please return to the online store and try again” is displayed.
 * here are the logs:
 * 2023-02-18T15:54:44+00:00 DEBUG Creating payment object: type Order, first try
   failed: [2023-02-18T15:54:44+0000] Error executing API call (422: Unprocessable
   Entity): The amount of the order does not match the total amount from the order
   lines. Expected order amount to be €70.37 but got €65.47. Documentation: [https://docs.mollie.com/overview/handling-errors](https://docs.mollie.com/overview/handling-errors).
   Request body: {“status”:422,”title”:”Unprocessable Entity”,”detail”:”The amount
   of the order does not match the total amount from the order lines. Expected order
   amount to be €70.37 but got €65.47″,”field”:”amount”,”_links”:{“documentation”:{“
   href”:”[https://docs.mollie.com/overview/handling-errors&#8221](https://docs.mollie.com/overview/handling-errors&#8221);,”
   type”:”text/html”}}}. Field: amount 2023-02-18T15:54:44+00:00 DEBUG Creating 
   payment object: type Order, did not fail because of incorrect customerId, so 
   trying Payment now.
 * Yesterday we had someone who ordered via Klarna without any problems. The only
   thing that has changed is some plugins had been updated, which aren’t really 
   groundbreaking from my point of view as a PHP developer (but it can still be 
   the reason).
 * 
   I hope someone can provide me with a solution.

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

 *  Plugin Support [Syde Niklas](https://wordpress.org/support/users/niklasinpsyde/)
 * (@niklasinpsyde)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/creating-payment-object-type-order-first-try-failed/#post-16494095)
 * Hi [@webframe](https://wordpress.org/support/users/webframe/)
 * There is a mismatch in the order lines.
 * Klarna is fairly strict in this regard compared to other payment methods and 
   will complain if the amounts from the line items do match the actual amount.
 * Sometimes this could happen due to rounding issues, e.g. when using taxes with
   more than three decimals (e.g. 10.123%)
   But €70.37 an €65.47 do not look like
   a regular rounding error.
 * > The only thing that has changed is some plugins had been updated, which aren’t
   > really groundbreaking from my point of view as a PHP developer (but it can 
   > still be the reason).
 * Plugin updates can sometimes have big impact, but it depends on the specific 
   plugin and type of update.
 * Were there any discounts applied to this example order? Or do you see anything
   else that could be related to the two different amounts used for this payment?
 * Thanks!
 * Kind regards,
   Niklas
 *  Plugin Support [Syde Niklas](https://wordpress.org/support/users/niklasinpsyde/)
 * (@niklasinpsyde)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/creating-payment-object-type-order-first-try-failed/#post-16536046)
 * We have not heard back from you in a while, so I’m marking this thread as resolved.
   
   We’ll be here to assist when you are ready to continue looking into this with
   us.If you have any further questions, please feel free to reopen this topic or
   create a new one.
 * Thanks!

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

The topic ‘Creating payment object: type Order, first try failed:’ is closed to 
new replies.

 * ![](https://ps.w.org/mollie-payments-for-woocommerce/assets/icon-256x256.png?
   rev=3090580)
 * [Mollie Payments for WooCommerce](https://wordpress.org/plugins/mollie-payments-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mollie-payments-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mollie-payments-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/mollie-payments-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mollie-payments-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mollie-payments-for-woocommerce/reviews/)

## Tags

 * [klarna](https://wordpress.org/support/topic-tag/klarna/)

 * 2 replies
 * 2 participants
 * Last reply from: [Syde Niklas](https://wordpress.org/support/users/niklasinpsyde/)
 * Last activity: [3 years, 2 months ago](https://wordpress.org/support/topic/creating-payment-object-type-order-first-try-failed/#post-16536046)
 * Status: resolved