• Resolved doudoujack

    (@doudoujack)


    Hi,

    since a while we can’t get customers to buy through Klarna, receiving “Error processing checkout. Please try again.” when clicking on order now. When checking the logs, Create session or Update session is sent, but no order is sent to the API.

    Tried:
    – deactivating all plugins related to payments / tax / shipping
    – updating all plugins
    – updating WP core
    – deactivating the Confirm & Place Order Page (removing the one selected) in German Market plugin
    – making sure “Force to use German Market Checkout Template” is deactivated in German Market plugin
    – uninstall and reinstall the plugin
    – creating new API keys

    Still no success.
    Looking at the logs in WC as well as Klarna site, I see the API sends a POST to /payments/merchant/<my_id>/v1/sessions with a correct response, and sends updates as well to /payments/merchant/<my_id>/v1/sessions/<correlation_token> with an empty response. However, nothing more happens…

    See below for one order:

    {
       "id":"***",
       "type":"POST",
       "title":"KP Create Session",
       "request":{
          "headers":{
             "Authorization":"Basic ***",
             "Content-Type":"application\/json"
          },
          "method":"POST",
          "user-agent":"WordPress\/5.6.7; https:\/\/nordiccoastcompany.de - WooCommerce: 6.2.0 - KP:2.8.1 - PHP Version: 7.3.27 - Krokedil",
          "body":{
             "purchase_country":"DE",
             "purchase_currency":"EUR",
             "locale":"de-DE",
             "order_amount":3590,
             "order_tax_amount":573,
             "order_lines":[
                {
                   "reference":"530-20-426D",
                   "name":"Kuscheltier Baby Dino Hannah",
                   "quantity":1,
                   "unit_price":3590,
                   "tax_rate":1900,
                   "total_amount":3590,
                   "total_tax_amount":573,
                   "total_discount_amount":0,
                   "product_url":"https:\/\/nordiccoastcompany.de\/shop\/baby-geschenk\/kuscheltier-baby-dino-hannah\/",
                   "image_url":"https:\/\/nordiccoastcompany.de\/wp-content\/uploads\/2021\/11\/1-Kuscheltier-Dino-Hannah-Jade-Altrosa-100x100.jpg"
                },
                {
                   "type":"shipping_fee",
                   "reference":"flat_rate:16",
                   "name":"Versandkostenpauschale International au\u00dfer EU",
                   "quantity":1,
                   "unit_price":0,
                   "tax_rate":0,
                   "total_amount":0,
                   "total_tax_amount":0
                }
             ],
             "customer":{
                "type":"person"
             },
             "options":null,
             "merchant_urls":{
                "authorization":"https:\/\/nordiccoastcompany.de\/wc-api\/KP_WC_AUTHORIZATION"
             }
          },
          "timeout":10
       },
       "request_url":"https:\/\/api.klarna.com\/payments\/v1\/sessions",
       "response":{
          "body":{
             "headers":{
                
             },
             "body":"{\n  \"session_id\" : \"***\",\n  \"client_token\" : \"***\",\n  \"payment_method_categories\" : [ {\n    \"identifier\" : \"pay_later\",\n    \"name\" : \"Rechnung\",\n    \"asset_urls\" : {\n      \"descriptive\" : \"https:\/\/x.klarnacdn.net\/payment-method\/assets\/badges\/generic\/klarna.svg\",\n      \"standard\" : \"https:\/\/x.klarnacdn.net\/payment-method\/assets\/badges\/generic\/klarna.svg\"\n    }\n  }, {\n    \"identifier\" : \"pay_now\",\n    \"name\" : \"Sofort bezahlen\",\n    \"asset_urls\" : {\n      \"descriptive\" : \"https:\/\/x.klarnacdn.net\/payment-method\/assets\/badges\/generic\/klarna.svg\",\n      \"standard\" : \"https:\/\/x.klarnacdn.net\/payment-method\/assets\/badges\/generic\/klarna.svg\"\n    }\n  } ]\n}",
             "response":{
                "code":200,
                "message":"OK"
             },
             "cookies":[
                
             ],
             "filename":null,
             "http_response":{
                "data":null,
                "headers":null,
                "status":null
             }
          },
          "code":200
       },
       "timestamp":"2022-02-15 20:33:43",
       "plugin_version":"2.8.1"
    }

    This is the only call I can see in the log when I try placing an order. On the client side the error text mentioned above is displayed.

    I literally tried everything that would come up to my mind – and other payments such as Paypal are working flawlessly.

    Could you please help on that? I’m really blocked right now. I can give you access to the WordPress as well as to the JIRA with the whole description of steps and logs collected.

    Thanks a lot in advance!

    • This topic was modified 3 years, 1 month ago by doudoujack.
    • This topic was modified 3 years, 1 month ago by doudoujack.
    • This topic was modified 3 years, 1 month ago by doudoujack.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello @doudoujack,
    ?
    ?Can you send me a system report by following this guide, and the entire log with a https://pastebin.com/ or https://gist.github.com link.

    ?Do you get any error in the checkout in the shop when you complete an order?
    ?

    Thread Starter doudoujack

    (@doudoujack)

    Pastebin
    pwd: kvRAz37XE3

    When selecting Klarna and proceeding, after some seconds the following error message appears: “Error processing checkout. Please try again.”

    Also, the Klarna API receives the call (we can see it in the Klarna Client Portal) for creating a session, but seems the plugin does not call further to create the order.

    Thank you in advance.

    Thread Starter doudoujack

    (@doudoujack)

    Hi @lindareinhold, any news on that? I’m not sure the logs that you requested will help since the API call for the order is simply not sent.

    (of course as already mentioned tried disabling all plugins to verify if anything was blocking)

    Thank you in advance & best regards.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Error processing checkout. Please try again. (create order not sent)’ is closed to new replies.