Skip to main content

Easily Integrate
Klarna's Checkout API using Konfig's TypeScript SDK

Need a TypeScript SDK for Klarna's Checkout API?

Growing API Companies trust Konfig's SDKs to onboard developers to their API.

SnapTradeHumanloopSplititLeapGroundx

First, instantiate the SDK

It only takes a few lines of code.

index.ts

import { KlarnaCheckout } from 'klarna-checkout-typescript-sdk';
const klarnaCheckout = new KlarnaCheckout()

Then, send your first request

We made it really easy.

index.ts

// Create an order
const createNewOrderResponse = klarnaCheckout.order.createNewOrder({
order_id: "f3392f8b-6116-4073-ab96-e330819e2c07"
name: "Women's Fashion"
purchase_country: "US"
purchase_currency: "USD"
locale: "en-US"
status: "CHECKOUT_INCOMPLETE"
order_amount: 50000
order_tax_amount: 4545
html_snippet: "<div id='klarna-checkout-container'><script>alert('Initializing Klarna Checkout');</script></div>"
merchant_reference1: "45aa52f387871e3a210645d4"
merchant_reference2: "45aa52f387871e3a210645d4"
merchant_data: "{\"marketplace_seller_info\":[{\"product_category\":\"Women's Fashion\",\"product_name\":\"Women Sweatshirt\"}]}"
})

Enjoy a buttery smooth developer experience with 4 SDK methods

How Konfig Works

Konfig collects APIs and automatically generates SDKs so you can focus on building your application.

openapi-examples

Konfig maintains the highest quality collection of OpenAPI Specifications on the internet in a GitHub repository

We pull OpenAPI Specifications from public sources, fix any errors, and make sure they pass our lint rules. We continually make sure the repository is up-to-date and collect up-time and response time metrics for every API.

openapi-examples-to-konfig

Generates AI-Augmented SDKs from openapi-examples

Our SDK generator is trusted by growing API companies and goes through a rigorous testing process to ensure the generated SDKs are high-quality and easy to use.

konfig-to-package-managers

Publishes to standard package managers

We publish to standard package managers like npm, PyPI, and Maven so you can easily integrate the SDK into your application.

Klarna

About Klarna

Klarna is a Swedish fintech company that provides online financial services such as payment solutions for online storefronts, direct payments, and more. Klarna's 'buy now, pay later' options make shopping easier for customers, allowing them to defer payments or pay in installments. The company has gained popularity for its smooth and secure checkout process, enhancing the overall shopping experience for consumers worldwide.

Keywords

finance
payments
online_payments
fintech
checkout_experience

Start integrating Klarna's Checkout API with Konfig