LokiCheckout_KlarnaDevTools
PHP
8.2 - 8.5
Magento
2.4.6 - 2.4.9
CSP
Yes
PHPStan
5
Magento PHPCS
6
License
OSL-3.0
Latest Release
none
Development tools for LokiCheckout_Klarna. Never install this module in production.
When loki_checkout/klarna_dev_tools/use_service_stubs is enabled:
- The Klarna Payments API calls of
Klarna\Kp\Model\Api\Rest\Service\Payments(create, update and read session, place and cancel order) are answered byStub\ResponseGeneratorinstead of the Klarna API. - The stubbed session offers the payment method categories of
loki_checkout/klarna_dev_tools/payment_method_categories(comma-separated, defaultklarna), so the checkout shows the matchingklarna_<category>payment methods. - Placing the order only succeeds with an authorization token starting with
loki-stub-auth-, as issued by the browser-side Klarna SDK stub of theLokiCheckout_KlarnaPlaywright tests. - Klarna does not copy the (non-existing) addresses of the stubbed Klarna order onto the Magento order.
bin/magento config:set loki_checkout/klarna_dev_tools/use_service_stubs 1 bin/magento config:set loki_checkout/klarna_dev_tools/payment_method_categories klarna,pay_later
The browser still loads the Klarna SDK from x.klarnacdn.net: the Playwright tests route it to a stub.
WARNING: This module has no releases yet. If you want to use it, make sure to add the version
@dev
to the composer command.
Support
For getting support, create an Issue under the following project URL:
https://gitlab.yireo.com/loki-checkout-dev/LokiCheckout_KlarnaDevTools.git
Composer details
Magento module name
LokiCheckout_KlarnaDevToolsComposer name
loki-checkout/magento2-klarna-dev-toolsComposer version
No release yet
Default branch
main
Requirements
klarna/m2-klarna: ^4.10
klarna/module-payments: ^11.12
loki-checkout/magento2-klarna: dev-main || ~0.0
magento/framework: ^103.0
magento/module-config: ^101.2
magento/module-sales: ^103.0
magento/module-store: ^101.1
php: >=8.2 <8.6
Releases
Changelog
No changelog available
Last modified: November 1, 2026