LokiCheckout_KlarnaExpress

This integration is available in the paid plans for the Loki Checkout. Support for this integration is provided as is, because we are depending upon the original vendor as well. High priority support is only available on an hourly basis.
Integration
Payment
Professional
PHP 8.2 - 8.5
Magento 2.4.6 - 2.4.9
CSP Yes
Unit Tests 58
Integration Tests 56
Functional Tests 9
PHPStan 4
Magento PHPCS 6
License OSL-3.0
Latest Release 1.0.0

This Magento 2 module is an add-on package to the LokiCheckout.

It adds the Klarna Express Checkout (KEC) button to the fast checkout area (loki-checkout.fast_checkout) of the Loki Checkout. The customer authorizes with Klarna in a popup and shares a shipping address. The checkout then fills in the address, a shipping method and Klarna as the payment method, and opens the last step. The customer reviews the order there and clicks Place Order.

Requirements

  • loki-checkout/magento2-klarna (LokiCheckout_Klarna)
  • klarna/m2-klarna with klarna/module-kec (Klarna_Kec), klarna/module-payments (Klarna_Kp) and klarna/module-siwk (Klarna_Siwk, needed for orders of logged-in customers)

Installation

Install this package via composer:

composer require loki-checkout/magento2-klarna-express

Next, enable this module:

bin/magento module:enable LokiCheckout_KlarnaExpress
bin/magento setup:upgrade

Configuration

Under Stores > Configuration > Sales > Payment Methods > Klarna:

  • Klarna Payments must be active (payment/klarna_kp/active) and the Klarna API must be configured (API region, mode, credentials).
  • Express Checkout: enable it (payment/kec/enabled) and select the two-step workflow (payment/kec/workflow). An empty workflow also counts as two-step.
  • The client identifier of the API region and mode in use (for example klarna/api_eu/client_identifier_playground or klarna/api_eu/client_identifier_production) must be filled in. The client identifier is public and is the only Klarna setting that reaches the browser.
  • The theme and shape of the Express Checkout settings are used for the button.
  • The store default country must be allowed in the Klarna configuration.
  • The shop origin must be on the allow-list of the client identifier in the Klarna merchant portal.

Limitations

  • Only the two-step workflow is supported. With only the one-step workflow, the button is hidden.
  • The button is only shown in the fast checkout block of the Loki Checkout. The payment/kec/position setting (cart, product page, mini cart) is ignored. In the default skin, the fast checkout block is part of the billing step.
  • The button is hidden for virtual carts, empty carts and PSP merchants (Klarna Plugins API).
  • The button is hidden once a Klarna Express Checkout session is active for the cart.

See PSP.md for the payment flow.

Current status

pipeline success

Support

For getting support, create an Issue under the following project URL:

https://gitlab.loki-extensions.com/loki-checkout/LokiCheckout_KlarnaExpress.git

Loki Components

The following LokiComponents are created or references in this module:

loki-checkout-klarna-express.fast-checkout.button
Module Dependencies

The following dependencies are declared in the module its `etc/module.xml` file:

Klarna_AdminSettings Klarna_Backend Klarna_Base Klarna_Kec Klarna_Klarna_Api Klarna_Kp Klarna_Logger Klarna_Plugins_Api LokiCheckout_Core LokiCheckout_Klarna Loki_Base Loki_Components Loki_CssUtils Loki_FieldComponents Magento_AdminNotification Magento_Backend Magento_Catalog Magento_CatalogInventory Magento_Checkout Magento_CheckoutAgreements Magento_Cms Magento_Config Magento_Csp Magento_Customer Magento_Directory Magento_Eav Magento_Indexer Magento_MediaGalleryUiApi Magento_Newsletter Magento_Payment Magento_Paypal Magento_Quote Magento_Rule Magento_Sales Magento_SalesRule Magento_SalesSequence Magento_Shipping Magento_Store Magento_Tax Magento_Theme Magento_Ui Magento_User Magento_Variable Magento_Vault Magento_Widget Yireo_CspUtilities
Composer details
Magento module name
LokiCheckout_KlarnaExpress
Composer name
loki-checkout/magento2-klarna-express
Composer version
No release yet
Default branch
main
Requirements
ext-pcre: *
klarna/m2-klarna: ^4.10
klarna/module-admin-settings: ^2.18
klarna/module-base: ^12.10
klarna/module-kec: ^3.10
klarna/module-klarna-api: ^2.10
klarna/module-logger: ^4.11
klarna/module-payments: ^11.12
klarna/module-plugins-api: ^2.8
loki-checkout/magento2-core: ^2.0
loki-checkout/magento2-klarna: ^1.0.2
loki/magento2-components: ^2.8
loki/magento2-css-utils: ^1.1
magento/framework: ^103.0
magento/module-checkout: ^100.4
magento/module-directory: ^100.4
magento/module-quote: ^101.2
magento/module-store: ^101.1
php: >=8.2 <8.6
psr/log: ^1.0 || ^2.0 || ^3.0
Releases
1.0.0 22 November 2026
Changelog

[1.0.0] - 13 November 2026

Initial release

  • Cover Klarna Express Checkout visibility, orders, decline and retry
  • Add Klarna Express Checkout button to the fast checkout block
  • Add Klarna Express Checkout configuration, controllers and quote handling

Last modified: November 13, 2026