This tutorial helps you integrate Klarna Payments on your website. By adding Klarna Payments, you enable your consumers to try before they buy, finance purchases on your store via Klarna Credit, or make use of other payment methods made available by Klarna. Klarna offers these payment options via a widget, called Klarna Payments widget or just "the widget", which you add inline on your checkout page.
Klarna's Payments widget lets you
- easily add Klarna's payment methods in your checkout
- apply your visual guidelines to get a branded experience
Klarna’s widget contains the following integration components:
- a Payments API, a REST API used for creating a credit session and creating an order, server side
Integration Process Overview
Here is a high level overview of the steps involved in an integration
- Create session: When the customer proceeds to your checkout page, create a session with Klarna
- Present widget Initiate and load the widget where Klarna displays the widget and it's payment methods to the customer
- Authorize: When the consumer presses the buy button on your page, request an authorization token
- Place order: Once the order is authorized, place the order using the authorization token from the previous step.
You will also learn how to implement Klarna Order Management calls for captures, refunds, cancellations after the order is placed, or if you like use our Merchant Portal to get started manually instead.
If you want to use Klarna’s test environment you must get a test account.
Our Integration guide will walk you through it. Your first step is to create a session.