Ability to catch common errors from Klarna Checkout
-
Hi,
I am using the Klarna Checkout for my multi currency/multi country website.
It all seems to work quite well, but bthere is one situation I like to cover in my own error handling: Klarna expects a specific currency for a specific country. I.e SEK for Sweden, EUR for Netherlands, NOK for Norway, etc.
Apparently this validation is NOT done based on the customer (billing) address, but on the user location.
Meaning: When I am in Sweden I can only order/pay in SEK.
For me that is OK, BUT: If for whatever reason the customer hase chosen a different currency in the shop, then I like to catch the “Bad value: purchase_currency error so I can show the user an appropriate message (“Please change your order currency to the currency of the country you are in”).
How can I accomplish this?In addition I will include functionality that before launching the Klarna Checkout the customer is asked to apapt the order currency if needed.
But trapping the error from the Klarna Checkout would be a beter falback.
The topic ‘Ability to catch common errors from Klarna Checkout’ is closed to new replies.