Integrate Klarna directly into the online store for secure, compliant payment processing and a seamless customer experience.
Integrating with Klarna's APIs gives the Partner a complete payments solution for the online store. Klarna handles the customer payment experience, including payment methods such as Pay in full and Financing, processes the payment, manages disputes and settles funds to the Partner.
The integration follows the life of a payment: present Klarna at checkout, authorize the payment and, optionally, save the customer's payment method, then manage the Payment Transaction afterward. The Klarna Web SDK also unlocks conversion features that help increase sales.
Accept payments
Every Klarna payment follows the same flow, whichever integration path the Partner chooses:
Present Klarna at checkout:Payment Presentation controls how Klarna appears as a payment method, including the headers, badges, messaging and the Klarna payment button customers see before they choose Klarna.
Authorize the payment: When the customer clicks the Klarna payment button, the Partner creates a Payment Request and the customer completes the Klarna Purchase Journey. Klarna issues a Klarna Network Session Token, which the Partner uses to authorize the payment, and Klarna creates the Payment Transaction. See the Payment Authorization overview.
Save the payment method (optional): With payment tokenization, the customer saves their Klarna payment method and Klarna issues a Customer Token. The Partner uses it to authorize future Payment Transactions for repeat purchases, subscriptions and on-demand payments, with or without the customer present. Tokenization uses the same Payment Request as a one-time payment, either without a payment or together with a first payment.
Choose an integration path
Integration path
When to use
Present Klarna
Authorize a one-time payment
Tokenize a payment method
Klarna Web SDK (recommended)
Delivers the most optimized customer experience. The SDK applies localized text and branding automatically, ships the prebuilt Klarna payment button and unlocks conversion features.
Dispute management: Follow each dispute through the disputes lifecycle, and receive notifications, submit evidence and track outcomes with the Payment Dispute API.
Settlements: Reconcile settlement reports against Payment Transactions, captures, refunds, fees and payouts. See Klarna settlements reconciliation.
Conversion features
The Klarna Web SDK brings Klarna closer to the customer experience and unlocks conversion features: