Klarna Docs - Before you test

Before you test

Learn about the Klarna credentials required and data you need to have handy to test our solutions.

To start testing Klarna products, you need:

To access the test Merchant portal, you can sign up to create a new test account or log in with a test existing account. 

To create a new test account, follow these steps:

  1. Click the Merchant portal button in the navigation bar of Klarna Docs.
  2. Select the region of your credentials (for example, 🇪🇺 Europe).
  3. Select Playground as the environment.
  4. Click Sign up.
  5. Type your email address and click SIGN-UP. You'll get a confirmation email at this address.
  6. Open the confirmation email and click Activate account.
  7. Finish setting up your account:
    a. Accept the Terms & Conditions.
    b. Choose a new password.
    c. Enter your name.
  8. Log in to the Merchant portal.

To log in with an existing test account, follow these steps:

  1. Go to the Merchant portal login page.
  2. Type your email address and password, then click Log In.

    If you don’t have these credentials, see the Create a new test account section. If you forgot your password, use the reset function.

To test your Klarna API integration, you need a set of test credentials. Follow these steps to get the credentials:

  1. Access the test Merchant portal.
  2. Click Payment settings in the left sidebar.
  3. Select Klarna API Keys
  4. Click the Generate new Klarna API key button.
  5. Download the .txt file and close the dialog box. 

You now have a Key ID (API Username) and a Secret (API password) to authenticate when testing the APIs. Note that the test keys will only work for requests you send to the playground API URLs.

The password is only displayed once. You will not be able to retrieve it after you close the dialog box.

In the playground environment, you must never use any real-life data to test the integration. When you're asked to enter data when testing, please use the sample customer data we've prepared.

To test the payment methods, use the sample payment data.