> For the complete documentation index, see [llms.txt](https://docs.saferpay.com/home/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.saferpay.com/home/integration-guide/payment-methods/klarna-payments.md). Agents can also search and read this documentation through its [MCP server](https://docs.saferpay.com/home/~gitbook/mcp).

# Klarna Payments

Klarna Payments is a third-party payment method that is split into multiple ways of payment:

* Pay Now: The order is paid now, via Direct Debit, Card, or Bank Transfer.
* Pay in 30 days: The order is paid on invoice.
* Pay in 3 or 4: The order is split into 3 or 4 payments, interest-free.
* Financing: The order is paid in installments, with interest.

{% hint style="warning" %}
Billie is not supported with this kind of Integration and requires special attention. Please [contact our Sales](https://docs.saferpay.com/home/integration-guide/support.md#worldline-sales-team), if you want to use Billie via Klarna.
{% endhint %}

## Requirements

Klarna Payments either works via the [Saferpay Payment](https://docs.saferpay.com/home/integration-guide/licences-and-interfaces/payment-page.md) page or with [Klarna Network Tokens](#klarna-network-tokens) and requires the following things to be met:

* A [corresponding license](https://docs.saferpay.com/home/master/licensing.md) and thus a valid identification with a username and password for the Saferpay system.
* Availability of at least one active Saferpay E Commerce terminal, via which payment can be carried out and availability of the associated Saferpay TerminalId.
* A valid Klarna Payments contract.&#x20;

{% hint style="info" %}
Please [contact our Sales](https://docs.saferpay.com/home/integration-guide/support.md#worldline-sales-team) to get your contract for Klarna Payments.
{% endhint %}

* API Spec-Version 1.19+

### Technical requirements

Klarna is normally available through the Saferpay [PaymentPage](https://docs.saferpay.com/home/integration-guide/licences-and-interfaces/payment-page.md) and requires the following to work properly:

* SpecVersion 1.19 and up.
* The notification URLs, inside the `Notification` container, are **mandatory** in order to avoid missing payment successes. See the [Payment Page](https://docs.saferpay.com/home/integration-guide/licences-and-interfaces/payment-page.md) for further information.

{% hint style="info" %}
Please also refer to the [Payment Page Initialize request-specification](https://saferpay.github.io/jsonapi/#Payment_v1_PaymentPage_Initialize) for more detailed information!
{% endhint %}

However Saferpay also supports the Integration of Klarna Payments through[ Klarna Network Tokens via the Transaction Interface](#klarna-network-tokens), offering a more seamless and integrated solution.

### Supported features

| Feature                                                                                                                                                                                                                                 | Support |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :-----: |
| [Capture](https://docs.saferpay.com/home/integration-guide/licences-and-interfaces/capture-and-daily-closing.md)/[Cancel](https://docs.saferpay.com/home/integration-guide/licences-and-interfaces/capture-and-daily-closing.md#cancel) |    ✅    |
| [Multipart Captures](https://docs.saferpay.com/home/integration-guide/licences-and-interfaces/capture-and-daily-closing/partial-captures.md)                                                                                            |    ✅    |
| Secure Card Data                                                                                                                                                                                                                        |    ❌    |
| [Refunds](https://docs.saferpay.com/home/integration-guide/licences-and-interfaces/transaction-interface/refunds.md)                                                                                                                    |    ✅    |
| Recurring Payments                                                                                                                                                                                                                      |    ❌    |
| 3D Secure                                                                                                                                                                                                                               |    ❌    |
| Dynamic Currency Conversion (DCC)                                                                                                                                                                                                       |    ❌    |
| Mail Phone Order                                                                                                                                                                                                                        |    ❌    |
| [Testing](#testing)                                                                                                                                                                                                                     |    ✅    |
| Omni-Channel                                                                                                                                                                                                                            |    ❌    |
| [Submission of the shopping cart](https://docs.saferpay.com/home/integration-guide/licences-and-interfaces/submitting-the-shopping-cart.md)                                                                                             |    ✅    |

## Integration special cases

This chapter will handle special cases, that go beyond the normal [Payment Page flow](https://docs.saferpay.com/home/integration-guide/licences-and-interfaces/payment-page.md).

### Attachment Data

Klarna offers the option to send additional data points alongside each order. These data points are then used for additional analysis, like a risk check on the Klarna side.

You can submit these data-points through the **PaymentMethodOptions.Klarna.Attachment** container, by defining the **ContentType** and the actual **Body**. As of now, these data-points are submitted as a JSON-string, following the format, as defined [in the Klarna documentation](https://docs.klarna.com/klarna-checkout/api/checkout-api/#tag/Attachment-Schema).

### Klarna Network Tokens

Klarna Network Tokens are a more direct and seamless alternative to the normal Payment Page described above. These tokens allow for express checkouts and integration across Klarna’s whole product suite.

{% hint style="info" %}
These tokens are issued by Klarna directly, so please [consult the Klarna documentation](https://docs.klarna.com/klarna-network-distribution/api/klarna-product-api-payment/#tag/Payment-Authorize-API/operation/authorizePayment) and, if needed, their support for help on that matter.
{% endhint %}

Saferpay's role in this is to accept and correctly process these tokens to perform a Klarna transaction. The following chapter assumes that the token is already present in your application and describes the steps necessary to actually perform the transaction through Saferpay. Furthermore, the following requirements need to be met:

#### Requirements

* API SpecVersion 1.55+

#### Integration

The basic flow for this kind of transaction will be the [Saferpay Transaction Interface](https://docs.saferpay.com/home/integration-guide/licences-and-interfaces/transaction-interface.md). With the Transaction Initialize request you must submit the mentioned **`klarna_network_session_token`** to Saferpay inside the **`PaymentMeans.Klarna.KlarnaNetworkSessionToken`** parameter. Saferpay will then automatically initialize a Klarna transaction, using the submitted token.

{% hint style="warning" %}
Please note, that it may be necessary to also submit additional data, by setting the **`KlarnaNetworkData`** parameter. The parameter directly accepts any additional data that is provided by Klarna through **`klarna_network_data`**. This may be necessary to enable additional payment options and more, but is not strictly necessary for basic functionality.

If some functionality is missing, this may be the cause.

Please consult the Klarna documentation for more information.
{% endhint %}

#### Redirect

Depending on the response from Klarna, the transaction can now take two paths. Either your customer must be redirected to Klarna, or you can proceed with the transaction itself. Please pay extra attention to this detail, [Transaction Interface](https://docs.saferpay.com/home/integration-guide/licences-and-interfaces/transaction-interface.md).

From there, the transaction will proceed normally through the [Transaction Interface](https://docs.saferpay.com/home/integration-guide/licences-and-interfaces/transaction-interface.md).

## Testing

Please contact the [Saferpay Integration Support](https://docs.saferpay.com/home/integration-guide/support.md#integration-support), if you want to test Klarna Payments.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.saferpay.com/home/integration-guide/payment-methods/klarna-payments.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
