Drupal is a registered trademark of Dries Buytaert
drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)! drupal 11.3.6 Update released for Drupal core (11.3.6)! drupal 10.6.6 Update released for Drupal core (10.6.6)! cms 2.1.0 Update released for Drupal core (2.1.0)! bootstrap 8.x-3.40 Minor update available for theme bootstrap (8.x-3.40). menu_link_attributes 8.x-1.7 Minor update available for module menu_link_attributes (8.x-1.7). eca 3.1.1 Minor update available for module eca (3.1.1). layout_paragraphs 2.1.3 Minor update available for module layout_paragraphs (2.1.3). ai 1.3.3 Minor update available for module ai (1.3.3). ai 1.2.14 Minor update available for module ai (1.2.14). node_revision_delete 2.0.3 Minor update available for module node_revision_delete (2.0.3). moderated_content_bulk_publish 2.0.52 Minor update available for module moderated_content_bulk_publish (2.0.52). klaro 3.0.10 Minor update available for module klaro (3.0.10). klaro 3.0.9 Minor update available for module klaro (3.0.9). layout_paragraphs 2.1.2 Minor update available for module layout_paragraphs (2.1.2). geofield_map 11.1.8 Minor update available for module geofield_map (11.1.8).

commerce_klarna

3 sites Security covered
View on drupal.org

This module integrates Drupal Commerce with Klarna including the Klarna Payments [1], Express Checkout [2], On-site Messaging [3] and the Merchant Card Service [4].

  1. https://docs.klarna.com/payments/web-payments/before-you-start/what-is-klarna-payments/
  2. https://docs.klarna.com/conversion-boosters/express-checkout/before-you-start/
  3. https://docs.klarna.com/conversion-boosters/on-site-messaging/before-you-start/
  4. https://docs.klarna.com/merchant-card-service/merchant-card-service/overview-of-merchant-card-service/

REQUIREMENTS

This module should be added to your codebase via Composer

composer require "drupal/commerce_klarna"

You must also have an Klarna account or developer access to the account you intend to configure for your integration. You can sign up for one here.

There are no other requirements than Commerce Core 3

FEATURES

  • Onsite checkout integration for Klarna Payments and Merchant Card Service.
  • Express checkout integration for Klarna Payments on the cart page.
  • On-site messaging integration on the product and cart page.
  • Order management interface for Klarna Payments and Merchant Card Service.
  • Configurable style options for Klarna button.
  • No third party dependencies.
  • Commerce shipping integration.
  • Event subscribers for enriching order payload.
  • Base Merchant Card Service integration.
  • Available payment methods: Pay now, Pay later, Pay over time.

CONFIGURATION

Once you've installed the module, you must navigate to the Drupal Commerce payment gateway configuration screen to define a payment gateway configuration. This will require providing depending on which integration you use API key, username, client token and configuring the mode (Live vs. Test).

Note: It's important that you select a proper Klarna region for your account.

Klarna Payments configuration

Enter your Klarna account credentials and select the integration mode. Configure on-site messaging, express checkout and style options.

Merchant Card Service configuration

This option is only available to you for use if Klarna enabled Merchant Card Service for your account. It allows you to use Klarna-issued cards for payments. The integration is done to the point where you can make the final implementation based on your specific needs. Please consult with Klarna support for more information.

Express checkout and collecting shipping address

If you want to enable express checkout on the cart page, you must enable under Klarna Payments gateway configuration the option "Enable express checkout."

If you want to collect shipping address on the cart page, you must enable under Klarna Payments gateway configuration the option "Collect shipping information through Klarna." And enable the submodule commerce_klarna_shipping.

Without a submodule being enabled, the checkout will fail.

CUSTOMIZATION

For most of the actions this module provides an event subscriber that can be used to alter the behavior. See all events at \Drupal\commerce_klarna\Event\KlarnaEvents

Supported events are such as creating and updating payment sessions (order payload), express checkout and shipment-specific events. And in the case of Merchant Card Service, the card promise event

Activity

Total releases
2
First release
Nov 2025
Latest release
4 months ago
Release cadence
0 days
Stability
0% stable

Releases

Version Type Release date
1.x-dev Dev Nov 20, 2025
1.0.x-dev Dev Nov 20, 2025