# vaimo/kustom-module-base

> Kustom Base Magento 2 Extension

`composer require vaimo/kustom-module-base`

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

## At a glance

- **Vendor**: Vaimo (https://packagento.com/vaimo.md)
- **Latest version**: 11.0.17 — released 2026-04-27
- **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-base 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-base:*
   bin/magento setup:upgrade
   bin/magento setup:di:compile
   bin/magento cache:flush
   ```

## What it does

Kustom Base Magento 2 Extension

## Changelog

11.0.17 / 2026-03-16
==================

  * KUSTOM-55 Fix missing error message when Klarna API exception is thrown
  * KUSTOM-68 Fix guzzlehttp/guzzle compatibility issue for magento <2.4.5
  * KUSTOM-20 Fix broken merchant portal link in order detail page

11.0.15 / 2026-02-18
==================

  * KUSTOM-51 Changing the direct linking on the admin panel to Kustom

11.0.14 / 2026-01-15
==================

  * KUSTOM-36 Adjusts the endpoints to direct to Kustom instead of Klarna API

11.0.13 / 2025-11-13
==================

  * KUSTOM-33 Change version info in admin panel
  * KUSTOM-4 Fix C/O address sync from Kustom to Magento

11.0.12 / 2025-06-03
==================

  * PPP-2016 Add Klarna Badge as an asset instead of using CDN

11.0.11 / 2025-05-21
==================

  * PPP-2055 Compatibility with AC 2.4.8 and PHP 8.4

11.0.10 / 2025-04-03
==================

  * PPP-1504 Add new helper method for integration tests.
  * PPP-1860 Simplified repository classes for database abstractions
  * PPP-1938 Update Merchant Portal links in the admin payment section
  * PPP-1978 Added integration tests for checking the payload for the capture and refund request
  * PPP-1984 Added helper for new integration tests
  * PPP-1994 Added new data sample for integration tests

11.0.9 / 2025-03-26
==================

  * PPP-1903 Fetch available Klarna features from Klarna API

11.0.8 / 2025-02-11
==================

  * PPP-1772 Added fixture for downloadable products
  * PPP-1773 Added integration tests for configurable products
  * PPP-1774 Added integration tests for grouped products
  * PPP-1775 Added fixtures for Integration tests for dynamic bundled products
  * PPP-1924 Show selected payment method for a KP order in the admin order view
  * PPP-1962 Update order details in Express Checkout orders
  * PPP-1973 Fixed type error at \Klarna\Base\Model\Quote\Address\Country::getCountryByAddress
  * PPP-1974 Setting the virtual flag in the post purchase workflow

11.0.7 / 2025-01-22
==================

  * PPP-1767 Added fixture for API tests for new zealand
  * PPP-1859 Simplified unit tests by using a helper which includes the mocking logic.
  * PPP-1881 Klarna\Base\Helper\VersionInfo: Add missing unit tests
  * PPP-1882 Klarna\Base\Model\Quote\SalesRule: Add missing unit tests
  * PPP-1883 Added missing unit tests for Klarna\Base\Model\Responder\Result
  * PPP-1886 Extended unit test test case class
  * PPP-1949 Fixed case when the shipping address of the quote is null when fetching the country of it
  * PPP-1954 Fix database connection pooling issue

11.0.6 / 2024-12-03
==================

* PPP-1744 Added for KP request timeout value of 4 seconds for the server side API requests

11.0.5 / 2024-10-18
==================

  * PPP-1704 Create unit tests for Base/Helper/DataConverter.php
  * PPP-1714 Simplify composer.json files
  * PPP-1731 Moved class \Klarna\Base\Plugin\ConfigPlugin to the AdminSettings module
  * PPP-1732 Remove unused class \Klarna\Base\Plugin\Sales\Block\Adminhtml\Order\View\InfoPlugin

11.0.4 / 2024-09-26
==================

  * PPP-1011 Using const keys when converting a Klarna address to a adobe address
  * PPP-1521 Using the store instance to fetch the locale
  * PPP-1669 Fix the locale mapping for norway

11.0.3 / 2024-08-21
==================

  * PPP-330 Added missing tests for Klarna\Base\Model\Quote\Address\Handler
  * PPP-754 Added Sign-in with Klarna
  * PPP-910 Moved logic of getting back the used country from the KP to the Base module
  * PPP-1014 Deprecated Klarna\Base\Helper\KlarnaConfig
  * PPP-1606 Refactor the Logger/Model/Logger class
  * PPP-1616 Added first API integration test
  * PPP-1632 Added timestamps to the database table.

11.0.2 / 2024-08-12
==================

  * PPP-754 Added Sign-in with Klarna

11.0.1 / 2024-07-26
==================

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

## Recent Versions

| Version | Released |
|---|---|
| 11.0.17 | 2026-04-27 |
| 11.0.16 | 2026-03-05 |
| 11.0.15 | 2026-02-18 |
| 11.0.14 | 2026-01-15 |
| 11.0.13 | 2025-11-13 |
| 11.0.12 | 2025-09-16 |

## Dependencies

### Require

| Package | Constraint |
|---|---|
| guzzlehttp/guzzle | ^6.0\|^7.3.0 |
| magento/framework | ^103 |
| magento/module-bundle | ^100.1\|^101.0 |
| magento/module-catalog | ^103.0\|^104.0 |
| magento/module-config | ^101.0\|^101.2 |
| magento/module-customer | ^102.0\|^103.0 |
| magento/module-directory | ^100.1\|^100.4 |
| magento/module-payment | ^100.1\|^100.4 |
| magento/module-paypal | ^100.3\|^101.0 |
| magento/module-quote | ^101.0\|^101.2 |
| magento/module-sales | ^102.0\|^103.0 |
| magento/module-store | ^101.0\|^101.1 |
| magento/module-tax | ^100.1\|^100.4 |
| php | ~7.4.0\|\|~8.1.0\|\|~8.2.0\|\|~8.3.0\|\|~8.4.0 |
| vaimo/kustom-module-logger | 3.0.9 |

## Quality

Latest release (11.0.17) 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 | 121 | 121 warnings (ruleset: Magento2) — 57 auto-fixable with phpcbf |
| PHPMD | Warning | 16 | 16 rule violations (MissingImport:10, TooManyPublicMethods:5, TooManyMethods:1) |
| Cpd | Warning | 25 | 25 duplicated chunks spanning 1137 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 | 23 | 23 | – | – |
| 2.4.8 | – | 21 | 21 | – |
| 2.4.9 | – | – | 21 | 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 | Pass | Pass | – | – |
| 2.4.8 | – | Pass | not tested | – |
| 2.4.9 | – | – | Pass | not tested |


### 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-base"],
  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.

