Integrate with Klarna’s Global API Ecosystem by using dedicated test and live environments, global endpoints, and best practices to ensure secure, scalable, and reliable performance.
Klarna provides both test and live environments, each designed to support seamless global integration of the Partner management API, Partner product API, and other Klarna products, irrespective of your location, the customer’s origin or other particular considerations.
Klarna Partners are required to make both test and live environments available to all Partners integrated via their services to allow for the validation of their Klarna integration. All payment services available in production are required to be included in this availability. Klarna requires that accounts in any environment not be shared across multiple Partners.
These environments function entirely independently of each other, and may behave differently as a result of the below considerations:
Global base URLs are provided to optimize latency and enhance fault tolerance.
Environment | DNS | IP Addresses |
---|---|---|
Live | api-global.klarna.com
| 13.248.252.240, 76.223.28.105
|
Test | api-global.test.klarna.com
| 3.33.145.71, 13.248.213.183
|
Callbacks from Klarna will originate from specific IP addresses for each environment.
Environment | Callback IP Addresses |
---|---|
Live | 52.17.117.56, 52.17.176.198, 52.0.45.33, 52.0.46.187, 13.211.30.100, 3.104.49.49, 13.54.229.130 |
Test | 34.242.203.160, 34.242.19.4, 52.45.47.152, 34.235.91.238, 3.24.91.202, 52.62.115.68, 52.63.129.92 |
Klarna.js is a Web SDK that bundles all our products, including payments and Boost products. This SDK will allow you to handle your most frequent use cases easily, with a few lines of code, and allowing customization for additional edge cases.
Our API is primarily redirect driven, but will run on-page through modal when supported by the device. The same integration pattern can be used for both redirect and on-page mode. This means that the SDK survives a loss of JavaScript context and can restart itself.
To learn more on how to integrate Klarna leveraging Klarna’s SDK, see Recommended integration: Klarna.js section. Consult the SDK reference for a complete description of the specifications.
Klarna Mobile SDK enables Klarna services to work seamlessly within a native mobile app. The Mobile SDK supports Klarna Payment Services, Klarna Express checkout, Sign in with Klarna, On-Site messaging, and more, using technologies like Kotlin, Swift, JavaScript, and Typescript.
This SDK is the recommended default way to use Klarna products in mobile applications. This is mainly due to the limitations of the WebViews in both iOS and Android. The SDK adds iOS/Android native components and lets Klarna services overcome those issues with a communication between web and native environments.
Note using the Mobile SDK can degrade your Klarna integration and may prevent customers from completing their payments because: