Changing API URL from Klarna to Kustom

Klarna has migrated from the Klarna Portal to the new Kustom Portal.

According to the official Kustom documentation (https://docs.kustom.co/api/api-urls), we now need to update the API URLs used for Klarna Checkout integrations.

However, the current API URLs are hardcoded in Litium.Klarna.Rest.Core.dll

Our production environment is still working (for now), but Klarna Playground has stopped working entirely. We can no longer test or integrate using our development Payment Accounts, since they’ve been moved to Kustom Playground. This makes the issue quite urgent for us.

I’ve seen this topic mentioned before:
:link: https://forum.litium.com/t/change-api-url-for-klarna-addon/2158

Is there any way around this problem?

Litium version: 7
Klarna Addon version: 4.6.126

Hi,

I have reached out to you via email but I will answer here for visibility as well.

As stated on the Kustom documentation page you linked, the “old” Klarna API URLs will continue working alongside the Kustom URLs for an undefined transitional period. We are in continuous dialog with Kustom regarding this topic and will release an updated version of the Klarna add-on before the Klarna URLs are decommissioned.

Regarding the issue with the Kustom playground I suggest you check the Litium logs if there are any errors logged from the Klarna add-on. You can also reach out to Kustom support to see if there are any issues on their side, eg with the test Merchant ID you are using in the test environment.

We have talked to Kustom support and they say that only productions environment are redirected and not playground.

Hi Johan,
We have received the same response from Kustom and Klarna as Kastebo.

Klarna Playgrounds have not been migrated to Kustom Playgrounds, and Klarna’s Playgrounds are now shut down. Only the old production URLs are redirected from Klarna to Kustom.

In my case, we now have a critical bug (connected to the Klarna Addon) that we need to troubleshoot against a Playground environment. I would appreciate an update to the Klarna Addon, allowing us to override the hardcoded API URLs.

Hi Hjalmar,

Does the Merchant ID configured in your test environment start with K, M or PM?

Hi Johan,
It was PK until it stopped working earlier this year.
Now it’s PM - a new store we made in Kustom Playground Portal.

Not sure if this is the case for everyone but it looks like klarna playground is closed down for integrations for all our customers. It is possible to login in klarna playground backoffice but not orders will be created.

Kustom has said that playground connections isn’t redirected from klarna to Kustom but it looks like that in reality test environment aren’t event migrated since kustom has no knowledge what test account is connected to which customer.

My recommendation is to upgrade to latest version of klarna app and ask kustom for a new test account. The new test account will have a merchant id starting with PM so the app know that this is a kustom account.

BUT this only works for Litium 8 customers that have a updated klarna app. Not sure what Litium 7 customers with the klarna addons should do since i can’t see that this is fixed in the addon. I guess that there are not many new kustom customers using Litium 7 but since playground stopped working they need to use kustom playground to test integrations.

I got confirmation from Kustom that it is indeed the case that not all merchant ids have been migrated from the Klarna playground.

For Litium 8 the Klarna app 1.13.0 has been released that supports the kustom.co endpoints for newly created merchant ids.

For Litium 7 we will issue a fix for the Klarna add-on to add the same logic there. I understand that the ability to test the payment integration is important so we will prioritise this issue.

No not all are migrated and one reason is that in they do not know what accounts are associated with what customer.

But migration for testaccounts are pretty pointless if klarna doesn’t redirect playground account to kustom since the litium klarna app sends the PK account communication to klarna and not kustom and klarna discards the request after migration.

The solution if one need to test right now is to ask kustom for a new test account that has a PM-prefixed MID. Unless there is a change in the app for PK account they will never works after migration since according to custom klarna has no plans of redirecting klarna playground to kustom playground.

For Litium 7 customers there is not solution to be able to test at the moment (if the test account is migrated to kustom)

For Litium 7 we will issue a fix for the Klarna add-on to add the same logic there. I understand that the ability to test the payment integration is important so we will prioritise this issue.

Thanks Johan. Good news.

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