• Resolved evoteqdigital

    (@evoteqdigital)


    Hello,

    I have a strange issue. I have the latest WooCommerce and Klarna version. Normally it is working correctly, but some Klarna Orders are not working.

    For example yesterday there was the second order, which was correctly placed into WooCommerce, but i dont see any Transaktion in my Klarna Backend and also the order status is not “In progress”. The status is still “Waiting for payment”.

    Here is the log for that order:

    08-28-2019 @ 20:42:17 - {"id":"7aa38b2c-39dc-6a5d-863a-715fa448b6f6","type":"POST","title":"Klarna Payments create session request.","request":{"headers":{"Authorization":"Basic SzYwNDIwNl82MzU1ZGFlMjM1ZDE6SWxPTnM5YlRWMDBkM29FYg==","Content-Type":"application\/json"},"user-agent":"WordPress\/5.2.2; https:\/\/www.latex-kissen.de - KP:1.8.4 - PHP Version: 7.2.21 - Krokedil","body":{"purchase_country":"DE","purchase_currency":"EUR","locale":"de-de","order_amount":8990,"order_tax_amount":1435,"order_lines":[{"reference":"LK-005","name":"Peanut Soft","quantity":1,"unit_price":8990,"tax_rate":1900,"total_amount":8990,"total_tax_amount":1435,"total_discount_amount":0,"product_url":"https:\/\/www.latex-kissen.de\/produkt\/peanut-soft\/","image_url":"https:\/\/www.latex-kissen.de\/wp-content\/uploads\/2019\/03\/peanut-soft-2-100x100.png"},{"type":"shipping_fee","reference":"free_shipping:1","name":"Kostenlose Lieferung","quantity":1,"unit_price":0,"tax_rate":0,"total_amount":0,"total_tax_amount":0}],"customer":{"type":"person"}}},"response":{"body":{"session_id":"7aa38b2c-39dc-6a5d-863a-715fa448b6f6","client_token":"eyJhbGciOiJSUzI1NiJ9.ewogICJzZXNzaW9uX2lkIiA6ICI3YWEzOGIyYy0zOWRjLTZhNWQtODYzYS03MTVmYTQ0OGI2ZjYiLAogICJiYXNlX3VybCIgOiAiaHR0cHM6Ly9rbGFybmEtcGF5bWVudHMtZXUua2xhcm5hLmNvbSIsCiAgImRlc2lnbiIgOiAia2xhcm5hIiwKICAibGFuZ3VhZ2UiIDogImRlIiwKICAicHVyY2hhc2VfY291bnRyeSIgOiAiREUiLAogICJ0cmFjZV9mbG93IiA6IGZhbHNlLAogICJlbnZpcm9ubWVudCIgOiAicHJvZHVjdGlvbiIsCiAgIm1lcmNoYW50X25hbWUiIDogIkRpYUJyb3RoZXJzLmNvbSIsCiAgInNlc3Npb25fdHlwZSIgOiAiUEFZTUVOVFMiLAogICJjbGllbnRfZXZlbnRfYmFzZV91cmwiIDogImh0dHBzOi8vZXZ0LmtsYXJuYS5jb20iLAogICJleHBlcmltZW50cyIgOiBbIF0KfQ.uUoFxfvS8y8WUibuymeKZY6nin3t57rIou2sNG9DP5tZX2IXgJlOMET6HTH7SqEAZdPmzeDeffpzuQ6nRzaGztGGsboDDqLpMA_zcDvYGWn7q2W04ueCskzGVAcQ_q0rULTulh4mr8mQAa0ZmWr4wt2PX23kurNr3kMAlUegkAA2ihe85BBpCIUNYm5prkTQWzx1tZEZeQXLcny7X5ZF7n7OeJ2N8H6cK8yyD6mURE0gSk2QiNJA7XXFDO-hpT6h47YNX90vlyACWlHHR42nm2JUnC_Xtq5o7a36sKvUqEIW0wwbp6e7hsbkYPRYHfpfhHS9sS0gHBvTBIxxUT_5xA","payment_method_categories":[{"identifier":"pay_later","name":"Rechnung.","asset_urls":{"descriptive":"https:\/\/x.klarnacdn.net\/payment-method\/assets\/badges\/generic\/klarna.svg","standard":"https:\/\/x.klarnacdn.net\/payment-method\/assets\/badges\/generic\/klarna.svg"}}]},"code":200},"timestamp":"2019-08-28 18:42:17","plugin_version":"1.8.4"}
    08-28-2019 @ 20:42:19 - "Klarna Payments update session request. Status Code: 204 Response: null"
    08-28-2019 @ 20:42:23 - "Klarna Payments update session request. Status Code: 204 Response: null"
    08-28-2019 @ 20:42:23 - "Klarna Payments update session request. Status Code: 204 Response: null"
    08-28-2019 @ 20:42:48 - "Klarna Payments update session request. Status Code: 204 Response: null"
    08-28-2019 @ 20:42:48 - "Klarna Payments update session request. Status Code: 204 Response: null"
    08-28-2019 @ 20:43:47 - "Klarna Payments update session request. Status Code: 204 Response: null"
    08-28-2019 @ 20:43:47 - "Klarna Payments update session request. Status Code: 204 Response: null"
    08-28-2019 @ 20:43:54 - "Klarna Payments update session request. Status Code: 204 Response: null"
    08-28-2019 @ 20:43:54 - "Klarna Payments update session request. Status Code: 204 Response: null"
    08-28-2019 @ 20:44:00 - "Klarna Payments update session request. Status Code: 204 Response: null"
    08-28-2019 @ 20:44:00 - "Klarna Payments update session request. Status Code: 204 Response: null"
    08-28-2019 @ 20:44:16 - "Klarna Payments update session request. Status Code: 204 Response: null"
    08-28-2019 @ 20:44:16 - "Klarna Payments update session request. Status Code: 204 Response: null"
    08-28-2019 @ 20:44:24 - "Klarna Payments update session request. Status Code: 204 Response: null"
    08-28-2019 @ 20:44:24 - "Klarna Payments update session request. Status Code: 204 Response: null"
    08-28-2019 @ 20:44:28 - "Klarna Payments update session request. Status Code: 204 Response: null"
    08-28-2019 @ 20:44:28 - "Klarna Payments update session request. Status Code: 204 Response: null"
    08-28-2019 @ 20:44:36 - "Klarna Payments update session request. Status Code: 204 Response: null"
    08-28-2019 @ 20:44:37 - "Klarna Payments update session request. Status Code: 204 Response: null"
    08-28-2019 @ 20:44:38 - "Klarna Payments update session request. Status Code: 204 Response: null"
    08-28-2019 @ 20:44:38 - "Klarna Payments update session request. Status Code: 204 Response: null"

    The last time it happened i told the customer to reorder again … and it was working.

    How can this happen? Maybe it happens when the customer took too much time to click on “Buy now” and then the Klarna session is not valid anymore?

    Most of the orders are made with mobile device. Maybe thats also a problem.

    Thanks!

    • This topic was modified 5 years, 2 months ago by evoteqdigital.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Kristi at Klarna

    (@klarna)

    Hi @evoteqdigital,
    Please note: this issue is related to Klarna Payments, not Klarna Checkout.

    This post covers this issue: https://docs.krokedil.com/article/288-klarna-payments-faq#h-H2_1
    This particular order was declined by Klarna.

    Please let us know if further support is needed.

    Thread Starter evoteqdigital

    (@evoteqdigital)

    @klarna Thank you. But it is very strange that another customer was able to order again with the same data … and it was working.

    When the oder was declined by Klarna … why is it possible for the user to complete the WooCommerce order? This is strange … the user should see a hint “You cannot pay via Klarna, please choose another payment method”.

    Plugin Author Kristi at Klarna

    (@klarna)

    @evoteqdigital – I can’t provide details of the complex Klarna logic regarding customer approvals or denials. When a customer is denied, they would see a modal error message, i.e. “Sorry, we aren’t able to approve your purchase. Please choose a different payment method.” (which can be tested using a +denied email address per https://developers.klarna.com/documentation/testing-environment/)

    With KP v1.8.0+, the customer order is now first created in WooCommerce in a ‘Pending Payment’ status when the customer clicks the Place Order button and the order passes Woo validation. This order is a valid Woo order but has not yet been paid for and should not be processed. Then the order is attempted to be placed in the Klarna system. If the Klarna order is successful, the Woo order is then updated to ‘Processing’ status. If the Klarna order is not successful, the Woo order stays in ‘Pending Payment’ status, and depending upon store configuration, may later be auto-cancelled after the configured time delay.

    Plugin Author Kristi at Klarna

    (@klarna)

    @evoteqdigital – Just to clarify, the test flags (+denied) work with the playground environment, per https://developers.klarna.com/documentation/testing-environment/

    Plugin Author Kristi at Klarna

    (@klarna)

    Closing this issue, but if further support is needed please let us know.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Successfull orders are not transfered to klarna’ is closed to new replies.