Skip to main content
Klarna is a Buy Now Pay Later (BNPL) payment method that lets customers defer or split payments at checkout.

How it works

When a customer selects Klarna, they are redirected to the Klarna checkout page to complete payment. After payment, the customer is redirected back, but the transaction status may not be immediately available at that point. The final status is delivered asynchronously — use webhooks or query the API to confirm it. Klarna provides the following payment methods:

Create order

The following example shows how to create a Klarna order:

Generic order

Airline order

Marketplace order

Bus reservation

Working with shipping

There are two ways to send the shipping fee:
  1. Add a shopping cart item with type ShippingFee when creating the order.
  2. In the shopping cart item, set the amount inside the shipping property. This amount is used only if there is no ShippingFee item in the cart.

Create payment from order

You can create a Klarna payment by passing the checkoutKey from the order response:
To check whether the transaction was accepted, look at the code field. A successful response returns BYRD207. See the Create Payment API reference for the full list of request parameters, and the API code reference for all possible codes.