Klarna Docs - Install the Klarna extension

Install the Klarna extension

Learn how to install the Klarna extension from the Adobe Commerce Marketplace.

Prerequisite: When using the Klarna m2-klarna Adobe Commerce extension, for a direct integration of either Klarna Payments or Klarna Checkout, you will need a Klarna merchant account, for which you can sign up here.

Klarna payments was bundled and distributed with Magento Open Source and Adobe Commerce Editions versions 2.2.4 to 2.4.3.

With versions 2.4.4 and later, Klarna payments is no longer bundled with Magento Open Source and you need to install the Klarna extension from the Adobe Commerce Marketplace.

If you’ve previously used bundled Klarna payments or haven't used Klarna before, perform a fresh installation.

If you’ve previously used Klarna checkout, upgrade from an older version of Adobe commerce.

To perform a fresh installation of the Klarna extension, follow these steps:

1. Go to the Adobe Commerce Marketplace and order the free Klarna extension. You need to be logged into your Marketplace account to complete the order.

2. Run the following commands:

BASH
php bin/magento maintenance:enable
composer require klarna/m2-klarna

You may need to enter your username and password. Make sure to use the credentials for the same account you used to get the Klarna extension.

3. Next, run these commands:

BASH
php bin/magento setup:upgrade && php bin/magento setup:di:compile && php bin/magento setup:static-content:deploy -f && php bin/magento cache:clean
php bin/magento maintenance:disable

To upgrade from an older version of Adobe Commerce, follow these steps:

1. Go to the Adobe Commerce Marketplace and order the free Klarna extension. You need to be logged into your Marketplace account to complete the order.

2. Run the following command:

BASH
php bin/magento maintenance:enable

3. If you've used the Klarna checkout (klarna/m2-checkout) extension before, uninstall the old extension before proceeding:

BASH
composer remove klarna/m2-checkout

4. To upgrade your Adobe Commerce version, follow the instructions provided by Adobe.

5. Run the following command:

BASH
composer require klarna/m2-klarna

You might need to enter your username and password. Make sure to use the credentials for the same account you used to get the Klarna extension.

6. Run the following commands to complete the upgrade:

BASH
php bin/magento setup:upgrade && php bin/magento setup:di:compile && php bin/magento setup:static-content:deploy -f && php bin/magento cache:clean
php bin/magento maintenance:disable