Hi,
We get error message from Klarna Addon when loading the checkout page while having an active campaign that reduces the price for multiple order rows with a percentage. It seems like there is something off with the calculations, maybe a rounding error?
We’re using the latest version of the add-on but with an old (5.6.10) version of Litium & Accelerator.
Any ideas on what to look for?
Messages: Error when calling POST https://api.playground.klarna.com/checkout/v3/orders/a4d1aebf-3d59-658d-965d-75e0d91b11be.
Exception: Klarna.Rest.Core.Commuication.ApiException, Klarna.Rest.Core, Version=3.1.12.0, Culture=neutral, PublicKeyToken=a952321ed6e24c14
HttpStatusCode : BadRequest
Klarna API error messages:
{
"error_code": "BAD_VALUE",
"error_messages": [
"Bad value: total_tax_amount"
],
"correlation_id": "315da2dd-4582-4f4e-9880-fe18b28dfae5"
}
at Klarna.Rest.Core.Communication.BaseRestClient.<ThrowIfError>d__19.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.<MakeRequest>d__13.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.<Post>d__4`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.CheckoutStore.<UpdateOrder>d__3.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.CreateOrUpdateKcoOrder(OrderCarrier orderCarrier, ExecutePaymentArgs args)
Litium version: 5.6.10