Skip to content
OpenCart · User manual

Klarna Payments PRO

Version 1.1.1 Product page
Chapter 4

Quick start

The shortest route from a fresh installation to a verified test payment in Klarna Playground, followed by the checklist for going live.

Set up in test mode

  1. Install the extension and validate your licence. See Installation and Licence activation.
  2. At the top of the editor, choose the store to configure in Store.
  3. In the Klarna connection tab, paste your Playground API key in Test · API password or Klarna API key, leave the test username empty and choose the Test · API region of your Klarna account.
  4. In the Settings tab set Mode to Test, choose an Accepted order status, tick the countries to test in Enabled purchase countries and set Payment method to Enabled.
  5. Click Save settings. You see "Settings saved."
  6. Open the Payment notifications tab, copy the worker address and the private worker key, and create the scheduled task. See Notifications and worker.

Test in Klarna Playground

In Test mode no real money moves. Use Klarna's published sample customer data for your country, never real buyer data. Example for Spain and EUR:

DataApproved buyerDenied buyer
E-mailcustomer+es@klarna.comcustomer+es+denied@klarna.com
Telephone+34672563009+34682425101
Name and addressTest Person-es, Test Street 13, 28012 MadridTest Person-es, Test Street 13, 28012 Madrid

When Playground asks for more, Klarna documents the national ID 99999999R, the date of birth 10-07-1970 and the one-time code 123456 for the simulated buyer.

Run these checks with the currency and billing country of your Klarna account:

  1. Approved payment. You return to the order success page. The order has your accepted status, its history shows Klarna authorized: and the Klarna order ID, and Payment activity shows Authorized — not captured.
  2. Denied payment. The order is not confirmed and Payment activity shows Payment declined.
  3. Cancelled payment. Use Klarna's back or cancel link. You return to the checkout and the order is not confirmed.
  4. Recovery without return. Approve a payment and close the tab on Klarna's page before returning. Within a couple of minutes the scheduled task confirms the order.
  5. Capture. Capture a test order in the Playground portal at https://portal.playground.klarna.com/. After the next worker run, Payment activity shows Paid and confirmed.

Also test with your real theme and checkout, a coupon, a taxed product and your usual shipping methods, so that the order lines described in Checkout and orders are accepted for your catalogue.

Going live checklist

  1. All Playground checks pass, including recovery without a browser return.
  2. In Klarna connection, the production credentials are in the Live fields and Live · API region is right.
  3. Every country in Enabled purchase countries belongs to that region and to your Klarna agreement.
  4. Mode is Live and the settings are saved.
  5. The scheduled task uses mode=live, with one task per store that uses Klarna.
  6. One real order of a small amount appears as Authorized — not captured; capture or cancel it in Klarna Merchant Portal.
  7. Your team knows that orders are captured in Klarna Merchant Portal when they are shipped.

Still need help?

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