# vaimo/kustom-module-payments

> Kustom Payments Magento 2 Extension

`composer require vaimo/kustom-module-payments`

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

## At a glance

- **Vendor**: Vaimo (https://packagento.com/vaimo.md)
- **Latest version**: 10.0.19 — released 2025-11-10
- **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-payments 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-payments:*
   bin/magento setup:upgrade
   bin/magento setup:di:compile
   bin/magento cache:flush
   ```

## What it does

Kustom Payments Magento 2 Extension

## Changelog

10.0.17 / 2025-06-03
==================

  * PPP-2075 Fixed type error at \Klarna\Kp\Controller\Klarna\QuoteStatus
  * PPP-2086 Prevent customers from getting redirected to cart page after successful purchase with KP & KEC.

10.0.16 / 2025-05-21
==================

  * PPP-2055 Compatibility with AC 2.4.8 and PHP 8.4

10.0.15 / 2025-04-23
==================

  * PPP-2060 Updated version because of new dependencies

10.0.14 / 2025-04-03
==================

  * PPP-1504 Add shipping and billing addresses to create & update session request
  * PPP-1756 KP: Decrease number of requests on specific recurring scenarios
  * PPP-1860 Simplified repository classes for database abstractions
  * PPP-1898 Refactor Klarna\Kp\Model\KpConfigProvider
  * PPP-1978 Reordered integration test classes
  * PPP-1984 \Klarna\Kp\Controller\Klarna\GetPayLoad: Added integration tests

10.0.13 / 2025-03-26
==================

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

10.0.12 / 2025-02-11
==================

  * PPP-1772 Added integration tests for downloadable products
  * PPP-1773 Added integration tests for configurable products
  * PPP-1774 Added integration tests for grouped products
  * PPP-1775 Added 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

10.0.11 / 2025-01-22
==================

  * PPP-1767 Added API test for checking the new zealand API endpoint
  * PPP-1859 Simplified unit tests by using a helper which includes the mocking logic.
  * PPP-1954 Fix database connection pooling issue

10.0.10 / 2025-01-14
==================

  * PPP-1957 Added more integration tests for bundled products

10.0.9 / 2024-12-03
==================

  * PPP-1061 Not cancelling a Klarna order if the placement of the Klarna order failed (which always throwed a error in such a case)
  * PPP-1744 Added request timeout value of 4 seconds for the server side API requests
  * PPP-1763 Creating API test for the KP session creation request for the US market
  * PPP-1858 Splitted Integration and API tests in tests for the default and website level
  * PPP-1914 Fetching at \Klarna\Kp\Plugin\Model\PaymentMethodPlugin::afterGenerateFilterText the store from the store manager instance

10.0.8 / 2024-11-05
==================

  * PPP-1852 Getting the authorization token from the payment additional information or in case its empty from the Klarna quote model

10.0.7 / 2024-10-18
==================

  * PPP-316 Added the suffix *Observer to the observer classes
  * PPP-1705 Refactor Kp/Plugin/Model/AddressConditionPlugin.php
  * PPP-1714 Simplify composer.json files
  * PPP-1739 Setting the success quote ID in the session in the cookie controller

10.0.6 / 2024-09-26
==================

  * PPP-1521 Using the store instance to fetch the locale
  * PPP-1631 Created Cronjob for cleaning the KP database table klarna_payments_quote
  * PPP-1637 Readded the ability to enable and disable the file logging in the settings.
  * PPP-1659 Fixed the redirect after placing the order when using the auth callback workflow
  * PPP-1698 Fixed type error when checking the token for SIWK

10.0.5 / 2024-08-30
==================

  * PPP-1633 Removing the database entry in klarna_payments_quote after the order was created

10.0.4 / 2024-08-21
==================

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

## Recent Versions

| Version | Released |
|---|---|
| 10.0.19 | 2025-11-10 |
| 10.0.18 | 2025-09-26 |
| 10.0.17 | 2025-09-16 |

## Dependencies

### Require

| Package | Constraint |
|---|---|
| magento/framework | ^103 |
| magento/module-backend | ^101.0\|^102.0 |
| magento/module-checkout | ^100.1 |
| magento/module-config | ^101.0 |
| magento/module-customer | ^102.0\|^103.0 |
| magento/module-directory | 100.4.* |
| magento/module-payment | ^100.1 |
| magento/module-quote | ^101.0 |
| magento/module-sales | ^102.0\|\|^103.0 |
| magento/module-sales-rule | ^101.0 |
| magento/module-store | ^101.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-logger | 3.0.9 |
| vaimo/kustom-module-siwk | 1.0.* |

### Suggest

| Package | Constraint |
|---|---|
| magento/module-advanced-sales-rule | * |

## Quality

Latest release (10.0.19) 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 | 80 | 80 warnings (ruleset: Magento2) — 32 auto-fixable with phpcbf |
| PHPMD | Warning | 34 | 34 rule violations (TooManyPublicMethods:17, MissingImport:8, TooManyMethods:4, ExcessiveClassLength:2, EmptyCatchBlock:2) |
| Cpd | Pass | 0 |  |
| 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 | 193 | 193 | – | – |
| 2.4.8 | – | 191 | 191 | – |
| 2.4.9 | – | – | 191 | 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 | Error | Error | – | – |
| 2.4.8 | – | Error | Error | – |
| 2.4.9 | – | – | Error | Error |


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

