# Klarna through merchant account

## Before you start:

Make sure you:&#x20;

* [Enable **Funnelish Pay**](https://docs.funnelish.com/start/collecting-payments), before you try adding a payment gateway.
* Add a [**payment form**](https://docs.funnelish.com/start/funnel-builder/editor-forms) to a funnel step.

{% hint style="info" %}
After you have created a gateway, you can use it again on other funnels.
{% endhint %}

## Create a gateway

1. Open a funnel step.
2. Click the payment form field.
3. In the left settings panel, click **Edit payment** **options**.
4. Click **Connect a new gateway.**
5. In the pop-up window, click **Buy Now, Pay Later**.
6. Click **Add New Buy Now, Pay Later Gateway** on the new window.

<figure><img src="https://2613769297-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M1AQCa9ckIWH7hGfrUV%2Fuploads%2FIOYWDx7HIJNeek7OtPZp%2FBuy%20Now%2C%20Pay%20Later%20(Klarna)%20option.png?alt=media&#x26;token=e1a60a92-e12c-453e-aac9-f5b9e0365b9b" alt=""><figcaption><p>Select Buy Now, Pay Later as payment gateway.</p></figcaption></figure>

On the **New gateway** window:

1. On the **Gateway** field, select **Klarna** in the drop-down selection.&#x20;

<figure><img src="https://2613769297-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M1AQCa9ckIWH7hGfrUV%2Fuploads%2F3YJp30G1rNg8nZHdhNyZ%2FSelect%20Klarna%20in%20the%20gateway.png?alt=media&#x26;token=7165729d-68dc-4c9f-83f0-f6abcff5f198" alt=""><figcaption></figcaption></figure>

2. Enter a unique Gateway name. This name is for internal use, it is not visible in the funnel.
3. (If required) Toggle the switch to enable it if you are using a sandbox account (test mode).
4. Input your Username and Password in the corresponding fields. (You can get them from your Merchant Portal)

<figure><img src="https://2613769297-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M1AQCa9ckIWH7hGfrUV%2Fuploads%2FjbtEK0TKLyjsHKheKTuY%2FKlarna%20merchant%20account%20Username%20and%20Pass%202.png?alt=media&#x26;token=acc6fc22-247c-4c76-acbc-9c6dd0b595ab" alt=""><figcaption><p>Get your credentials in the Klarna Merchant Portal.</p></figcaption></figure>

5. Select your ideal region.
6. Click **Create**.&#x20;

<figure><img src="https://2613769297-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M1AQCa9ckIWH7hGfrUV%2Fuploads%2Ff4agBTQfKFuy3dFmvSYi%2FNew%20gateway%20window%20Klarna.png?alt=media&#x26;token=26cf6769-1ab2-4565-a5df-a9f164a890f2" alt=""><figcaption><p>Example of the New gateway window after filling the fields.</p></figcaption></figure>

7. After the New gateway window closes, select the newly created payment method on the list.&#x20;

<figure><img src="https://2613769297-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M1AQCa9ckIWH7hGfrUV%2Fuploads%2Fw8KNrkVtQ8glsSnOH4gB%2FSelect%20the%20newly%20created%20payment%20gateway%20Klarna.png?alt=media&#x26;token=c16155f5-f65d-41c1-b661-57d195666ca4" alt=""><figcaption></figcaption></figure>

8. Click **Save changes**.


---

# Agent Instructions: 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:

```
GET https://docs.funnelish.com/start/collecting-payments/klarna/klarna-through-merchant-account.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
