Support » Plugin: Klarna Checkout for WooCommerce » “Something went wrong”

  • Resolved zderekh

    (@zderekh)


    Hi,

    Recently, the Klarna checkout iframe stopped working and the iframe shows the following message: “Something went wrong. Sorry for any inconvenience, please try reloading the checkout page or try again later.”

    In the console, I get “Uncaught SyntaxError: Invalid or unexpected token” which is pointing on try-catch block:

    try{
          ((w.Image && (new w.Image))||(d.createElement && d.createElement('img'))||{}).src =
            l.CLIENT_EVENT_HOST + '/v1/checkout/snippet/load' +
            '?sid=' + l.ORDER_URL.split('/').slice(-1) +
            '&order_status=' + w.encodeURIComponent(l.ORDER_STATUS) +
            '&timestamp=' + (new Date).getTime();
        }catch(e){}
        reloadCheckoutHandler = function () {
            try{
                ((w.Image && (new w.Image))||(d.createElement && d.createElement('img'))||{}).src =
                l.CLIENT_EVENT_HOST+'/v1/checkout/snippet/reload?sid='+l.ORDER_URL.split('/').slice(-1)+
                '&order_status='+w.encodeURIComponent(l.ORDER_STATUS)+'&timestamp='+(new Date()).getTime();
                window.location.reload();
            }catch(e){}
        }

    And I can’t see anything unusual in WooCommerce logs.

    Appreciate any help in solving this 🙂

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Kristi at Klarna

    (@klarna)

    hi @zderekh ,
    I’m not yet able to recreate the problem on your site, but I also didn’t attempt to complete the order. Can you provide more details on the steps to recreate the problem when exactly the “Something went wrong” error is displayed?

    That error is similar to https://docs.krokedil.com/article/287-klarna-checkout-faq#h-H2_6, but in the Klarna logs I don’t see that orders are getting to the buy-button-clicked step, which would happen if the timeout for the client side JavaScript validate event was a problem.

    If customers are not able to complete orders on your store, you can also get dedicated support (likely will require sharing more store specific information) via support@krokedil.com

    Plugin Author Niklas Högefjord

    (@niklashogefjord)

    Marking this topic as resolved since we haven’t heard anymore. Please get back to us if you still are experiencing issues.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘“Something went wrong”’ is closed to new replies.