> For the complete documentation index, see [llms.txt](https://docs.norrnext.com/klarna-payments-hpp-for-phoca-cart/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.norrnext.com/klarna-payments-hpp-for-phoca-cart/phoca-cart-configuration.md).

# Phoca Cart configuration

### Payment Method Information

In this tab select Klarna Payments HPP as a `Payment Method`.

<figure><picture><source srcset="/files/ZavJVXS0dm0qQeFcuj3c" media="(prefers-color-scheme: dark)"><img src="/files/Rv6BFsp1cvwbwrVK0gfP" alt="Klarna HPP payment method for Phoca Cart. General options"></picture><figcaption><p>Klarna Payments HPP payment method - Phoca Cart. General Options tab</p></figcaption></figure>

* **Calculation Type** — Set calculation type. Available options: *Fixed Amount* / *Percentage*.
* **Cost** — Set shipping cost.
* **Additional Costs** — Set additional costs for payment method. This is a fixed amount added to the cost of the payment method.

### Configuration

* **Sandbox Mode** — *Yes* / *No***.** Sandbox is enabled, no real money will be transferred.

<figure><picture><source srcset="/files/XjLgIkWrdVPofbZZItY6" media="(prefers-color-scheme: dark)"><img src="/files/VOnzC6sgP8GSQrnF6XQP" alt="Klarna Payments HPP for Phoca Cart. Payment method Options tab. Order Statuses"></picture><figcaption><p>Configuration tab. Order Statuses</p></figcaption></figure>

#### Order Statuses

* **Payment Completed** — select the order status that will be applied based on successful payment transaction result. By default it is *Completed*.
* **Payment Failed** — select the order status that will be applied based on failed payment transaction result. By default it is *Cancelled*.&#x20;

{% hint style="info" %}
Phoca Cart comes with **'Failed'** status which is disabled by default.  To enable it, please go to `Phoca Cart > Order Statuses` and  enable Failed status. If there is no such status, you can create it.
{% endhint %}

<figure><picture><source srcset="/files/FfJ4MMpiLFBMPvz61Aqj" media="(prefers-color-scheme: dark)"><img src="/files/YE5HlmNopEPI3FCRdeWR" alt="Phoca Cart. Payment Failed status in Order statuses "></picture><figcaption></figcaption></figure>

* **Payment Canceled** — select the order status that will be applied based on canceled status of payment or order. By default it is *Cancelled*.

#### Klarna Options

<figure><picture><source srcset="/files/kLh3G8P0GtfhFDr73TOF" media="(prefers-color-scheme: dark)"><img src="/files/ioGmu0H3yFulTbaVMtnh" alt="Klarna Payments HPP for Phoca Cart. Payment method options tab. Klarna options"></picture><figcaption><p>Configuration tab. Klarna Payments HPP options</p></figcaption></figure>

{% hint style="success" %}
You can find options under Settings in your `Klarna Account Panel` > **Settings** > **Klarna API keys**. [See this article](/klarna-payments-hpp-for-phoca-cart/klarna-configuration.md).
{% endhint %}

* **Live API Username** — set your Live API Username
* **Live API Password** — set your Live API Password
* **Test API Username** — set your Test API Username
* **Test API Password** — set your Test API Password

{% hint style="info" %}
API keys are required fields to save the configuration.
{% endhint %}

* **Send Shipping Address** — available options: *Yes*, *No*. Send customer's shipping address.


---

# 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.norrnext.com/klarna-payments-hpp-for-phoca-cart/phoca-cart-configuration.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.
