Replies: 0
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) +
'×tamp=' + (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)+'×tamp='+(new Date()).getTime();
window.location.reload();
}catch(e){}
}
And I can’t see anything unusual in WooCommerce logs.
Appreciate any help in solving this 🙂