# vaimo/kustom-module-kco

> Kustom Checkout Magento 2 Extension

`composer require vaimo/kustom-module-kco`

Canonical URL: https://packagento.com/vaimo/kustom-module-kco

## At a glance

- **Vendor**: Vaimo (https://packagento.com/vaimo.md)
- **Latest version**: 12.0.23 — released 2026-04-30
- **Pricing**: Free
- **Package type**: Magento 2 module
- **Status**: active, accepting new buyers

## Installation

Packagento is licence-gated, so even free packages need a licence on a project before Composer can resolve them.

1. **Sign in or create an account** at https://packagento.com/customer/account/.

2. **Add the package to your account.** Open https://packagento.com/vaimo/kustom-module-kco and complete the free checkout. A licence is minted automatically.

3. **Create or pick a project, then activate the licence on it.**
   - Projects represent the Magento installs you deploy to. Manage them at https://packagento.com/projects/.
   - Activate the new licence on the project you'll deploy this package to. Activation is what generates the Composer credentials scoped to that project.

4. **Add the project credentials to your Magento codebase.**

   Grab the project's public + private key from https://packagento.com/projects/ (open the project, then its Credentials tab), and add them to `auth.json`:

   ```json
   {
     "http-basic": {
       "packagento.com": {
         "username": "ppk_live_...",
         "password": "psk_live_..."
       }
     }
   }
   ```

   Add the Packagento Composer repository to `composer.json`:

   ```json
   {
     "repositories": [
       { "type": "composer", "url": "https://packagento.com" }
     ]
   }
   ```

5. **Install and apply.**

   ```bash
   composer require vaimo/kustom-module-kco:*
   bin/magento setup:upgrade
   bin/magento setup:di:compile
   bin/magento cache:flush
   ```

## What it does

Kustom Checkout Magento 2 Extension

## Changelog

12.0.23 / 2026-04-22
==================

* KUSTOM-83 Fix Magento cancel status if klarna order is cancelled

12.0.22 / 2026-04-10
==================

* [KUSTOM-76] Fix Shipping amount does not match for order between Kustom and Magento
* [KUSTOM-58][KUSTOM-77][KUSTOM-82][KUSTOM-83][KUSTOM-84] Fix Orders instantly cancelled by api because of uncaught exceptions

12.0.21 / 2026-02-24
==================

* KUSTOM-54 Fix type error in B2b::isB2bCustomer

12.0.20 / 2026-02-19
==================

* KUSTOM-49 Fix error on logging address data into file

12.0.19 / 2026-01-16
==================

* KUSTOM-35 fix currency loading on order placement

12.0.16 / 2025-06-03
==================

  * PPP-2089 Updated version because of version dependency updates

12.0.15 / 2025-05-21
==================

  * PPP-2055 Compatibility with AC 2.4.8 and PHP 8.4

12.0.14 / 2025-04-23
==================

  * PPP-2060 Updated version because of new dependencies

12.0.13 / 2025-04-03
==================

  * PPP-1860 Simplified repository classes for database abstractions

12.0.12 / 2025-03-26
==================

  * PPP-1580 Added Plugins API functionality and hiding KCO for PSPs

12.0.11 / 2025-02-11
==================

  * PPP-1983 Increased version because of new dependencies

12.0.10 / 2025-01-22
==================

  * PPP-1954 Fix database connection pooling issue

12.0.9 / 2025-01-14
==================

  * PPP-1958 Increased version because of dependency version change

12.0.8 / 2024-12-03
==================

  * PPP-1878 Added check in the order creation step if the order was already created based on the quote ID

12.0.7 / 2024-11-05
==================

  * PPP-1856 Increased version because of the module version dependencies

12.0.6 / 2024-10-18
==================

  * PPP-1714 Simplify composer.json files

12.0.5 / 2024-09-26
==================

  * PPP-1521 Using the store instance to fetch the locale
  * PPP-1637 Readded the ability to enable and disable the file logging in the settings.

12.0.4 / 2024-08-21
==================

  * PPP-1014 Deprecated Klarna\Base\Helper\KlarnaConfig
  * PPP-1606 Refactor the Logger/Model/Logger class
  * PPP-1632 Added timestamps to the database table.

12.0.3 / 2024-08-12
==================

  * PPP-1604 Updated the version because of new versions of the dependencies

12.0.2 / 2024-07-26
==================

  * PPP-1553 Make the extension compatible with Adobe Commerce app assurance program requirements
  * PPP-1575 Improve KP performance by using a different approach to place order

12.0.1 / 2024-07-15
==================

  * PPP-1513 Added validation to check if on the Klarna side the same items are registered compared to the quote
  * PPP-1514 Optimized CSRF handling

12.0.0 / 2024-06-20
==================

* PPP-1437 Updated the admin UX and changed internally the API credentials handling

11.0.23 / 2024-07-03
==================

  * PPP-1551 Increased version because of new Klarna dependencies

11.0.22 / 2024-05-30
==================

  * PPP-1488 Fix isKpEnabled method in the KCO module

11.0.21 / 2024-04-24
==================

  * PPP-1391 Added support for Adobe Commerce 2.4.7 and PHP 8.3

11.0.20 / 2024-04-11
==================

  * PPP-1385 Increased version because of new Klarna dependencies

11.0.19 / 2024-03-30
==================

  * PPP-1013 Using instead of \Klarna\Base\Helper\ConfigHelper logic from other classes to get back Klarna specific configuration values.
  * PPP-1312 Adjusted call for sending the plugin version through the API header

11.0.18 / 2024-03-15
==================

  * PPP-1305 +Updated the coding style to fix the marketplace warnings.

11.0.17 / 2024-03-04
==================

  * PPP-916 Retrieve and add more debugging related data to the admin support request form.
  * PPP-1277 Removed the usage of the Zend\Uri\UriFactory class

11.0.15 / 2024-02-01
==================

  * PPP-1086 Fix broken KCO workflow if no order was yet created in the confirmation callback

_(Changelog truncated for .md surface. Full history on https://packagento.com/vaimo/kustom-module-kco.)_

## Recent Versions

| Version | Released |
|---|---|
| 12.0.23 | 2026-04-30 |
| 12.0.22 | 2026-04-17 |
| 12.0.21 | 2026-03-19 |
| 12.0.20 | 2026-03-19 |
| 12.0.19 | 2026-03-19 |
| 12.0.18 | 2025-11-10 |
| 2.0.17 | 2025-09-26 |
| 12.0.16 | 2025-09-16 |

## Dependencies

### Require

| Package | Constraint |
|---|---|
| ext-json | * |
| magento/framework | ^103 |
| monolog/monolog | ^2.3 \|\| ^3.9.0 |
| php | ~7.4.0\|\|~8.1.0\|\|~8.2.0\|\|~8.3.0\|\|~8.4.0 |
| vaimo/kustom-module-admin-settings | ^1 |
| vaimo/kustom-module-base | 11.0.* |
| vaimo/kustom-module-kss | 3.0.* |
| vaimo/kustom-module-logger | 3.0.9 |
| vaimo/kustom-module-orderlines | 3.0.* |

## Quality

Latest release (12.0.23) fails the Packagento QA pipeline. Verdicts below are per-cell (Magento line × PHP version) for the matrixed tools, and run-once for the static / security tiers.


### Compatibility

Each Magento line is installed on its supported PHP versions, then the module is built (DI compile + static-content deploy). Cells show passed / failed / untested; staircase gaps render as `–`.

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | 1 | 1 | – | – |
| 2.4.8 | – | 1 | 1 | – |
| 2.4.9 | – | – | 1 | not tested |


### Code Quality

Advisory checks against the module's source. Never affect the Compatibility verdict — a phpcs finding can't make a module incompatible.

#### Static Analysis

Coding standards (phpcs), mess detection (phpmd), copy-pasted code (cpd), PHP cross-version compatibility, composer.json validity. Each runs once for the whole module.

| Tool | Status | Findings | Summary |
|---|---|---|---|
| PHPCS | Warning | 31 | 31 warnings (ruleset: Magento2) — 19 auto-fixable with phpcbf |
| PHPMD | Warning | 16 | 16 rule violations (UndefinedVariable:6, MissingImport:4, TooManyPublicMethods:3, ExcessiveClassComplexity:1, IfStatementAssignment:1) |
| Cpd | Warning | 1 | 1 duplicated chunk spanning 25 total lines (min-lines=5, min-tokens=70) |
| Composer validate | Info | 2 | valid; 2 advisory notes (composer validate --strict) |

#### PHPStan

Type-checks the module against a real Magento install. Re-runs per Magento + PHP version because resolvable symbols differ between releases.

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | 253 | 253 | – | – |
| 2.4.8 | – | 251 | 251 | – |
| 2.4.9 | – | – | 251 | N/A |


### Tests

Unit and integration suites run per Magento + PHP cell. Test failures speak to the module's behaviour, not its compatibility with a line, so they're reported here separately.

#### Unit Tests

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | N/A | N/A | – | – |
| 2.4.8 | – | N/A | N/A | – |
| 2.4.9 | – | – | N/A | N/A |

#### Integration Tests

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | N/A | N/A | – | – |
| 2.4.8 | – | N/A | N/A | – |
| 2.4.9 | – | – | N/A | N/A |


### Security

Dependency-advisory audit (composer audit) plus a source malware scan. A malware detection fails the version outright.

| Tool | Status | Findings | Summary |
|---|---|---|---|
| Composer audit | Pass | 0 |  |
| Malware scan | Pass | 0 |  |

## Licence and pricing

Free. A licence is still minted on checkout and bound to your project for Composer access — no payment step.

Refundable within 14 days of first purchase via https://packagento.com/account/refunds/.

## Install via Claude Code or any MCP client

The Packagento MCP server can run the licence + project + Composer steps above in one tool call:

```
purchase_and_install_packages(
  composer_names=["vaimo/kustom-module-kco"],
  project_id="proj_xxx"
)
```

This handles cart, checkout, licence minting, project activation, and writes auth.json credentials. Connect a client with `claude mcp add packagento https://mcp.packagento.com`. Full setup at https://packagento.com/docs/mcp-setup.

## Vendor

Vaimo is a Magento 2 vendor on Packagento. See https://packagento.com/vaimo.md for their full catalogue.

