Skip to content
OpenCart · User manual

Klarna Payments PRO

Version 1.1.1 Product page
Chapter 5

Settings

Every field of the editor header, the Settings tab and the Klarna connection tab, in on-screen order, plus the exact rules that decide when Klarna is offered at checkout.

Editor header

ControlWhat it does
DashboardReturns to the OpenCart dashboard.
StoreChooses the store you are configuring. Settings and Klarna credentials are independent for each store; the licence belongs to the installation.
Administration languageAutomatic (OpenCart) follows the language of your OpenCart administration. You can also pick one of the eight languages for this visit.

The editor has four tabs: Settings, Klarna connection, Payment notifications and Payment activity. Save settings saves the first two tabs together and is hidden on the other two.

Users without modify permission see "Read-only access. Settings cannot be saved with this account.": the fields are disabled and the private worker key is hidden.

Settings tab

SettingWhat it does
Payment methodEnabled shows Klarna at checkout when all the rules below are met. Default: Disabled.
ModeTest uses Klarna Playground and the test credentials. Live uses production and the live credentials. Default: Test.
Accepted order statusThe OpenCart status given to the order when Klarna accepts the authorisation.
Geographic zoneAll zones, or one OpenCart geo zone. With a zone selected, Klarna is offered only to billing addresses inside it.
Minimum order totalSmallest order total, in the store's base currency, for which Klarna is offered. 0 removes the restriction. Default: 0.
Maximum order total (0 = unlimited)Largest order total in the base currency. Default: 0. It cannot be lower than the minimum.
Display orderPosition of Klarna among the payment methods. Lower numbers come first. Default: 0.
Enabled purchase countriesThe billing countries where you offer Klarna. Tick only countries of your Klarna merchant agreement. At least one is required.
Allowed customer groupsThe customer groups that can pay with Klarna. An empty selection allows all groups.

Accepted order status only lists processing statuses: on OpenCart 2.0 and later, those selected in the store setting "Processing Order Status"; on OpenCart 1.5, every status except the store's complete status. Choose one that means "accepted, to be fulfilled". Authorisation is not capture, and pending or rejected risk decisions never confirm an order.

The two last fields are searchable lists with tick boxes. Type in Search options… to filter and use Clear selection to untick all. A line shows how many entries are chosen, for example "3 selected". Countries appear by name with their code, for example "Germany (DE)".

Klarna connection tab

SettingWhat it does
Test · API username (Basic authentication)Playground API username. Leave it empty when you use a Klarna API key.
Test · API password or Klarna API keyPlayground API key, or the password that goes with the username.
Live · API username (Basic authentication)Production API username. Leave it empty when you use a Klarna API key.
Live · API password or Klarna API keyProduction API key, or the production API password.
Test · API regionEurope, North America or Oceania. Default: Europe.
Live · API regionThe same choice for production. Default: Europe.

The credential fields never show the saved value. Their placeholder reads "Configured; leave blank to keep" or "Not configured". Leave a field blank to keep its saved value.

Getting your Klarna credentials

Klarna issues separate credentials for each environment.

  1. For testing, sign in to the Klarna Playground portal at https://portal.playground.klarna.com/. For production, sign in to Klarna Merchant Portal.
  2. Generate API credentials for your store and keep them in a safe place. Your portal login password is not the API password.
  3. Paste them in the fields of the matching environment and save.

The extension accepts two formats:

  • Klarna API key. A single value starting with klarna_test_api_ (Playground) or klarna_live_api_ (production). Paste it in the password or key field and leave the username empty. A test key in a live field, or the reverse, is refused.
  • Username and password. Enter both. Each needs at least 4 characters and no spaces; the username cannot contain a colon.

API region, countries and currencies

The region must be the one of your Klarna merchant account. Each country is offered only in its local currency and only with credentials of its region.

RegionCurrencyBilling countries
EuropeEURAustria, Belgium, Germany, Spain, Finland, France, Greece, Ireland, Italy, Netherlands, Portugal, Slovakia
EuropeGBP, CHFUnited Kingdom, Switzerland
EuropeSEK, NOK, DKKSweden, Norway, Denmark
EuropePLN, CZK, HUF, RONPoland, Czechia, Hungary, Romania
North AmericaUSD, CAD, MXNUnited States, Canada, Mexico
OceaniaAUD, NZDAustralia, New Zealand

What is checked when you save

A successful save shows "Settings saved.". If a rule fails, nothing is saved and you see "Check the settings, key modes and paid order status before saving.".

  • Totals are numbers with up to four decimals, and a maximum above zero cannot be lower than the minimum.
  • Credentials follow the formats above.
  • To save with Payment method set to Enabled: Accepted order status is a processing status; the password or API key of the selected Mode is saved in a valid format; at least one country is ticked; and every ticked country belongs to the API region of that mode.

You can save incomplete settings while the method is Disabled.

When Klarna is shown at checkout

Klarna appears among the payment methods only when all of this is true for the current store:

  1. Payment method is Enabled and valid credentials are saved for the current Mode.
  2. The billing country is ticked in Enabled purchase countries.
  3. The checkout currency is the local currency of that country, and the country belongs to the API region of the current mode.
  4. The customer's group is in Allowed customer groups, or none is ticked. Guests count as the store's default group.
  5. Accepted order status is still one of the store's processing statuses.
  6. The cart has no subscription or recurring products.
  7. The order total is within the minimum and maximum.
  8. The billing address is inside the Geographic zone, when one is selected.

The rules are checked again when the customer clicks Pay with Klarna. A customer in Germany browsing in USD does not see Klarna until the currency is EUR, so enable each local currency in OpenCart if you sell to several countries.

Multi-store

  • Select a store in Store, configure it and save; repeat for the next one. A store that was never saved has the method disabled.
  • One set of credentials has one API region, so a store offers Klarna in one region at a time.
  • Amounts are sent to Klarna in the currency the customer used at checkout.
  • Each store needs its own scheduled task. See Notifications and worker.

Still need help?

Open a support ticket from your account and our team will look at your store with you.