> For the complete documentation index, see [llms.txt](https://docs.hyperswitch.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hyperswitch.io/integrations/connectors-integrations/payment-processor-capabilities/available-connectors/klarna.md).

# Klarna

Accept pay later payments through Klarna.

<div align="left"><img src="https://hyperswitch.io/icons/homePageIcons/logos/klarnaLogo.svg" alt=""></div>

Klarna provides pay later payments through a payment gateway integration. The declared method supports refunds and automatic, manual, or sequential automatic capture, but not mandates. Incoming webhooks are not supported by the connector, so status updates rely on API synchronization.

### Status and capabilities

**Integration status:** live

**Category:** payment gateway

**Webhook flows:** None declared in code

| Payment method | Type   | Mandates      | Refunds   | Capture methods                         | Countries | Currencies |
| -------------- | ------ | ------------- | --------- | --------------------------------------- | --------- | ---------- |
| pay later      | Klarna | not supported | supported | automatic, manual, sequential automatic | 22        | 12         |

### Authentication

Supply an API Username and API Password in the connector configuration. Hyperswitch combines them as `<API username>:<API password>`, Base64-encodes the result, and sends it as `Authorization: Basic <base64(username:password)>` on connector requests. See [`KlarnaAuthType::try_from()`](https://github.com/juspay/hyperswitch/blob/a17a23c4c4c907d2314043a32a9f505f7f2bd4f9/crates/hyperswitch_connectors/src/connectors/klarna/transformers.rs#L454-L470) and [`get_auth_header()`](https://github.com/juspay/hyperswitch/blob/a17a23c4c4c907d2314043a32a9f505f7f2bd4f9/crates/hyperswitch_connectors/src/connectors/klarna.rs#L93-L106).

### Before you start

1. Register with Klarna at [klarna.com/international/business](https://www.klarna.com/international/business/).
2. Create or sign in to your account in the [Hyperswitch control center](https://app.hyperswitch.io/).
3. In the Klarna merchant portal, go to **Settings → API credentials** to find the API Username and API Password.
4. Enable the same payment methods in Klarna that you plan to select in Hyperswitch.
5. Have the credentials listed in [Authentication](#authentication) ready.

To connect Klarna to your Hyperswitch account, follow [Activate a connector on Hyperswitch](/integrations/connectors-integrations/activate-connector-on-hyperswitch.md), then return here for what Klarna supports.

### Webhooks

Klarna webhooks are not currently processed by this connector. Do not configure Klarna webhooks as the source of status updates in Hyperswitch. The incoming webhook implementation returns `EventNotSupported` and `WebhooksNotImplemented`; see [`get_webhook_event_type()`](https://github.com/juspay/hyperswitch/blob/a17a23c4c4c907d2314043a32a9f505f7f2bd4f9/crates/hyperswitch_connectors/src/connectors/klarna.rs#L1450-L1474).

### Source reference

[Klarna connector implementation](https://github.com/juspay/hyperswitch/blob/a17a23c4c4c907d2314043a32a9f505f7f2bd4f9/crates/hyperswitch_connectors/src/connectors/klarna.rs) and [Klarna data mappings](https://github.com/juspay/hyperswitch/blob/a17a23c4c4c907d2314043a32a9f505f7f2bd4f9/crates/hyperswitch_connectors/src/connectors/klarna/transformers.rs)


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.hyperswitch.io/integrations/connectors-integrations/payment-processor-capabilities/available-connectors/klarna.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
