# Klarna with multiple countries and channel config

**URL:** <https://forum.litium.com/t/klarna-with-multiple-countries-and-channel-config/2033>\
**Category:** Questions\
**Tags:** litium-7\
**Created:** [April 30, 2021, 7:03am UTC](https://forum.litium.com/t/klarna-with-multiple-countries-and-channel-config/2033 "2021-04-30T07:03:56Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![tildaki](https://avatars.discourse-cdn.com/v4/letter/t/eb9ed0/32.png) [@tildaki](https://forum.litium.com/u/tildaki)\
**Post date:** [April 30, 2021, 7:03am UTC](https://forum.litium.com/t/klarna-with-multiple-countries-and-channel-config/2033/1 "2021-04-30T07:03:57Z")

</div>

Hi!

I want to create a global channel and klarna for multiple countries. But I can not make it work. The klarna widget doesn’t appear and the error message says “Can’t change payment method”.

I have a channel called en-eu with url-prefix, English (united kingdom) as language and United states as country with euro as currency. Doesn’t it work to have it that way?

I Klarna config I have:

```
<paymentAccount
          paymentAccIdentifier="KCOV3_EU"
          merchantId="#####"
          sharedSecret="######"
          isTestAccount="true"
          isKlarnaShippingServiceEnabled="true"
          isKlarnaCheckoutEnabled="true"
          isKlarnaPaymentsHppEnabled="true"
          headlessCheckout="false"
          salesCountry="US"
          captureFraudRiskOrders="false"
          distributeHppSessionPaymentLink="false">
      </paymentAccount>

```

I also tried salesCountry as “BE,BG,CY,CZ,HR,EE,ES,FR,GR,HU,IE,IT,LV,LT,LU,MT,NL,PL,PT,RO,AT,SK,SI”

And in UpdateDataSentToKlarna, I set “klarnaCheckoutOrder.ShippingCountries” with countries BE,BG,CY,CZ,HR,EE,ES,FR,GR,HU,IE,IT,LV,LT,LU,MT,NL,PL,PT,RO,AT,SK,SI.

It works in the local environment (sometimes) but not in the staging.

Thanks!

Litium version: _[Version number]_

---

<div class="post-metadata">

**Author:** ![NilsN](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/nilsn/32/302_2.png) [@NilsN](https://forum.litium.com/u/NilsN)\
**Post date:** [April 30, 2021, 9:27am UTC](https://forum.litium.com/t/klarna-with-multiple-countries-and-channel-config/2033/2 "2021-04-30T09:27:12Z")

</div>

`SalesCountry` should only include one country. And then you add the individual shipping countries as a list in `UpdateDataSentToKlarna`, [like here](https://docs.litium.com/documentation/add-ons/payments/klarna/develop#Enable_To_Sell_In_Multiple_Countries).

If you have trace logging for Klarna enabled, you should be able to find the real error behind _Can’t change payment method_ in the litium.log file.

Is the merchant account for NA or EU? Since you’re sending US the addon will try and use the NA environments.  
Does staging use a live merchant account? Is multiple countries enabled by Klarna?

---

<div class="post-metadata">

**Author:** ![tildaki](https://avatars.discourse-cdn.com/v4/letter/t/eb9ed0/32.png) [@tildaki](https://forum.litium.com/u/tildaki)\
**Post date:** [April 30, 2021, 11:44am UTC](https://forum.litium.com/t/klarna-with-multiple-countries-and-channel-config/2033/3 "2021-04-30T11:44:59Z")

</div>

I’ve changed the salesCountry to “AT” and we are adding the shipping countries as:

```
if (string.Equals(klarnaCheckoutOrder.Locale, ConfigurationManager.AppSettings["channel_en-eu"], StringComparison.OrdinalIgnoreCase))
            {
                klarnaCheckoutOrder.ShippingCountries = new List<string>
                {
                    ConfigurationManager.AppSettings["ShippingCountry_be"],
                    ConfigurationManager.AppSettings["ShippingCountry_bg"],
                    ConfigurationManager.AppSettings["ShippingCountry_cy"],
                    ConfigurationManager.AppSettings["ShippingCountry_cz"],
                    ConfigurationManager.AppSettings["ShippingCountry_hr"],
                    ConfigurationManager.AppSettings["ShippingCountry_ee"],
                    ConfigurationManager.AppSettings["ShippingCountry_es"],
                    ConfigurationManager.AppSettings["ShippingCountry_fr"],
                    ConfigurationManager.AppSettings["ShippingCountry_gr"],
                    ConfigurationManager.AppSettings["ShippingCountry_hu"],
                    ConfigurationManager.AppSettings["ShippingCountry_ie"],
                    ConfigurationManager.AppSettings["ShippingCountry_it"],
                    ConfigurationManager.AppSettings["ShippingCountry_lv"],
                    ConfigurationManager.AppSettings["ShippingCountry_lt"],
                    ConfigurationManager.AppSettings["ShippingCountry_lu"],
                    ConfigurationManager.AppSettings["ShippingCountry_mt"],
                    ConfigurationManager.AppSettings["ShippingCountry_nl"],
                    ConfigurationManager.AppSettings["ShippingCountry_pl"],
                    ConfigurationManager.AppSettings["ShippingCountry_pt"],
                    ConfigurationManager.AppSettings["ShippingCountry_ro"],
                    ConfigurationManager.AppSettings["ShippingCountry_at"],
                    ConfigurationManager.AppSettings["ShippingCountry_sk"],
                    ConfigurationManager.AppSettings["ShippingCountry_si"]
                };
            }

```

In the local enviroment:

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/litium/original/1X/4e6a2fb23d34765b1ef3036cdfd816d7d4928073.jpeg)

In staging:

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/litium/original/1X/ea71825cf93a0405ed3fe9ebbfb8bd8be8436748.jpeg)

And we are using the same Klarna for both environments ([https://playground.eu.portal.klarna.com](https://playground.eu.portal.klarna.com))

I guess multiple countries are enabled since it works in the locale environment.  
Can’t see any error in the litium.log file.

---

<div class="post-metadata">

**Author:** ![NilsN](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/nilsn/32/302_2.png) [@NilsN](https://forum.litium.com/u/NilsN)\
**Post date:** [April 30, 2021, 12:19pm UTC](https://forum.litium.com/t/klarna-with-multiple-countries-and-channel-config/2033/4 "2021-04-30T12:19:33Z")

</div>

Do you have the same settings in both environments? The message “The address should be in Austria.” suggests that no additional shipping countries were sent.

You should be able to see in litium.log (again if trace mode is enabled) what values are sent for `shipping_countries`.

---

<div class="post-metadata">

**Author:** ![tildaki](https://avatars.discourse-cdn.com/v4/letter/t/eb9ed0/32.png) [@tildaki](https://forum.litium.com/u/tildaki)\
**Post date:** [April 30, 2021, 3:23pm UTC](https://forum.litium.com/t/klarna-with-multiple-countries-and-channel-config/2033/5 "2021-04-30T15:23:58Z")

</div>

Shipping\_countries was null. The problem is solved now!  
Thank you @NilsN 🙏

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/litium/original/1X/12eddac3b8b661de1db86af10ac8151b571e6fb9.png) [@system](https://forum.litium.com/u/system)\
**Post date:** [May 28, 2021, 3:24pm UTC](https://forum.litium.com/t/klarna-with-multiple-countries-and-channel-config/2033/6 "2021-05-28T15:24:20Z")

</div>

Closed on May 28, 2021, 3:24pm UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
