• Resolved webframe

    (@webframe)


    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. 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”,”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

    (@niklasinpsyde)

    Hi @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

    (@niklasinpsyde)

    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.