# Klarna Swish error

**URL:** <https://forum.litium.com/t/klarna-swish-error/2129>\
**Category:** Questions\
**Created:** [July 14, 2021, 7:17am UTC](https://forum.litium.com/t/klarna-swish-error/2129 "2021-07-14T07:17:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gokul.gopi](https://avatars.discourse-cdn.com/v4/letter/g/53a042/32.png) [@gokul.gopi](https://forum.litium.com/u/gokul.gopi)\
**Post date:** [July 14, 2021, 7:17am UTC](https://forum.litium.com/t/klarna-swish-error/2129/1 "2021-07-14T07:17:33Z")

</div>

We get the following error when customers choose Swish in klarna, Can we fix this somehow?

Messages: Error converting value “SWISH” to type ‘Klarna.Rest.Core.Model.Enum.OrderManagementInitialPaymentMethodType’. Path ‘initial\_payment\_method.type’, line 1, position 1478.  
Exception: Newtonsoft.Json.JsonSerializationException, Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed  
at Newtonsoft.Json.Converters.StringEnumConverter.ReadJson(JsonReader reader, Type objectType, Object existingValue, JsonSerializer serializer)  
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.DeserializeConvertable(JsonConverter converter, JsonReader reader, Type objectType, Object existingValue)  
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target)  
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id)  
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)  
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)  
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target)  
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id)  
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)  
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)  
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)  
at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)  
at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)  
at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)  
at Klarna.Rest.Core.Communication.BaseRestClient.d\_\_17`1.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Klarna.Rest.Core.Communication.BaseRestClient.<Get>d__10`1.MoveNext()  
— End of stack trace from previous location where exception was thrown —  
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()  
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)  
at Klarna.Rest.Core.Store.OrderManagementStore.d\_\_7.MoveNext()  
— End of stack trace from previous location where exception was thrown —  
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()  
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)  
at Litium.AddOns.Klarna.Common.AsyncHelper.RunSync[TResult](Func`1 func)  
at Litium.AddOns.Klarna.Kco.LitiumKcoApi.NotifyOrderCreatedInternal(PaymentInfo paymentInfo)

Litium version: 7.4.2

---

<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:** [July 14, 2021, 7:32am UTC](https://forum.litium.com/t/klarna-swish-error/2129/2 "2021-07-14T07:32:01Z")

</div>

This has been fixed in an update to the addon:  
[https://docs.litium.com/documentation/add-ons/payments/klarna/release-notes](https://docs.litium.com/documentation/add-ons/payments/klarna/release-notes)

---

<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:** [August 11, 2021, 7:32am UTC](https://forum.litium.com/t/klarna-swish-error/2129/3 "2021-08-11T07:32:09Z")

</div>

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