Dear community, the SDK you are currently looking at is now deprecated. These are details related to sunsetting:
- We intend to archive this repo on June 1 2020 (01/06/20)
- Until November 1 2020 (01/11/20) high severity security issues found within the latest published version will be fixed. All support will cease after this date.
- No new builds will follow effective April 20 (20/04/2020) apart from the fixes mentioned above.
We are making Klarna REST API definition files available in Swagger / OAS v2 format, under the Klarna API Reference section on the Klarna Developer Portal. These will be regularly updated as the APIs evolve. You can use tools like https://swagger.io/tools/swagger-codegen/ to generate your own SDKs, client libraries, etc.
Shop at your favorite stores today and experience the freedom to pay later with Klarna.
The Klarna .NET Core SDK covers all of Klarna APIs under: https://developers.klarna.com/api/
- Microsoft .NET Framework 4 or above
- API credentials
Before getting a production account you can get a playground one. Register here to be able to test your SDK integration before go live:
- https://playground.eu.portal.klarna.com/developer-sign-up - for EU countries
- https://playground.us.portal.klarna.com/developer-sign-up - for the US
Example files can be found in the examples project.
Also you can check for the Sample projects:
- Sample Simple projects for demonstrating a backend API call
- WebApp MVC MVC project for demonstrating Klarna Checkout and Klarna Payment
- WebForms WebForms project with Klarna Checkout integrated
To install the Klarna .NET Core SDK, run the following command in the Package Manager Console:
PM> Install-Package Klarna.Rest.Core -Version x.y.z
dotnet add package Klarna.Rest.Core --version x.y.z
paket add Klarna.Rest.Core --version x.y.z
Check the https://www.nuget.org/packages/Klarna.Rest.Core/ to get information about the latest version.
Klarna API documentation: https://developers.klarna.com/api/
SDK References: https://klarna.github.io/kco_rest_dotnet/
Example files can be found in the Klarna.Rest/Klarna.Rest.Core.Examples/ project.
Additional documentation can be found at https://developers.klarna.com.
If you have any questions concerning this product or the implementation, please create an issue: https://github.com/klarna/kco_rest_dotnet/issues/new/choose
or use the Contact Us form at https://klarna.com website.
At Klarna, we strive toward achieving the highest possible quality for our products. Therefore, we require you to follow these guidelines if you wish to contribute.
To contribute, the following criteria need to be fulfilled:
- Provide a description of what has been changed and why
- Pull requests should implement a boxed change
- All code and documentation must follow the style specified by the StyleCop standard.
- New features and bug fixes must have accompanying unit tests:
- Positive tests
- Negative tests
- Boundary tests (if possible)
- No less than 90% decision coverage
- All unit tests should pass
The Klarna .NET Core SDK is licensed under Apache License, Version 2.0