# vipps/module-payment

> Vipps MobilePay Payment Module for Magento 2

`composer require vipps/module-payment`

Canonical URL: https://packagento.com/vipps/module-payment

## At a glance

- **Vendor**: vipps (https://packagento.com/vipps.md)
- **Latest version**: 3.0.3 — released 2026-06-16
- **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/vipps/module-payment 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 vipps/module-payment:*
   bin/magento setup:upgrade
   bin/magento setup:di:compile
   bin/magento cache:flush
   ```

## What it does

Vipps MobilePay Payment Module for Magento 2

## README

<!-- START_METADATA
---
title: Vipps/MobilePay Payment Module for Adobe Commerce / Magento
sidebar_label: Introduction
sidebar_position: 1
hide_table_of_contents: true
description: Provide Vipps and MobilePay payment options for your Adobe Commerce website.
pagination_next: plugins-ext/magento/docs/documentation
pagination_prev: null
section: Plugins
---
END_METADATA -->

## Payment module for Adobe Commerce / Magento

[![Support and development by bluemint — module owned by Vipps MobilePay](./docs/images/partner-module-badge.png)](https://www.bluemint.no/)

*This plugin is built and maintained by [bluemint](https://www.bluemint.no/) and is hosted on [GitHub](https://github.com/vippsas/vipps-magento).
For support, email us at [vipps@bluemint.dev](mailto:vipps@bluemint.dev)*

<!-- START_COMMENT -->
💥 Please use the plugin pages on [https://developer.vippsmobilepay.com](https://developer.vippsmobilepay.com/docs/plugins-ext/magento/). 💥
<!-- END_COMMENT -->

Vipps MobilePay offers a familiar and convenient buying experience that can help your customers spend more time shopping and less time checking out.

Vipps and MobilePay are used by large and small companies. From years of shopping safely with Vipps/MobilePay, customers trust their personal information will remain secure. Businesses have the reassurance of our advanced fraud protection and payment protection policy.

About [Adobe Commerce (*previously called Magento*)](https://experienceleague.adobe.com/en/browse/commerce).

This plugin is available for download at
[https://github.com/vippsas/vipps-magento/releases](https://github.com/vippsas/vipps-magento/releases).

### Documentation

The [user guide](./docs/documentation.md) contains:

* [Installation](./docs/documentation.md#installation)
* [Configuration](./docs/documentation.md#configuration)
* [Debugging](./docs/documentation.md#enable-debug-mode--requests-profiling)
* [Customization](./docs/documentation.md#customization)

See also [Frequently asked questions](./docs/FAQ.md).

### Support

*Vipps/MobilePay Payment Module for Adobe Commerce* is developed by [bluemint](https://www.bluemint.no/), and the same developers who made
the Vipps/MobilePay Payment module also help with improvements, maintenance and developer assistance.

If you are having a problem, please make sure that you are using the latest version:
[https://github.com/vippsas/vipps-magento/releases](https://github.com/vippsas/vipps-magento/releases)

The best way to report a problem (or ask a question) is to use GitHub's built-in "issue" functionality:
[Issues](https://github.com/vippsas/vipps-magento/issues) or email us at [vipps@bluemint.dev](mailto:vipps@bluemint.dev)

## Changelog

<!-- START_METADATA
---
title: Changelog
sidebar_position: 200
pagination_next: null
section: Plugins
---
END_METADATA -->

## Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

### [3.0.3] - 2026-06-15

#### Added
- "Show On Virtual Products" setting for the Express button. When disabled (the default), the Express
  shortcut is hidden on product pages for items that don't require shipping (virtual and downloadable),
  since express checkout collects a shipping address (VIPPS-451). Reworked from the community
  contribution in #180.

### [3.0.2] - 2026-06-15

#### Fixed
- Prevent the cart from being emptied when returning to the store via the browser back button after
  starting a Vipps/MobilePay Express payment. The pending quote id is stored in a cookie when express
  payment is initiated and the cart is restored from it on return (VIPPS-61).

### [3.0.1] - 2026-06-15

#### Added

- New Vipps/MobilePay Express button styling for the ePayment flow, with localized button images
  (Vipps EN/NO/SE, MobilePay DK/EN/FI) and matching translations (VIPPS-38).

### [3.0.0] - 2026-04-03

#### Added

- Added support for PHP 8.4
- Added new ePayment shipping option display in Vipps Express
- Added payment details message for ePayment
- Added transaction detail capturing for aggregate values
- Updated profiling for ePayment and added Get Payment Details profiler
- Vipps payment in Klarna checkout flow support

#### Changed

- Vipps now uses the ePayment API for express and payment method flows

## Recent Versions

| Version | Released |
|---|---|
| 3.0.3 | 2026-06-16 |
| 3.0.2 | 2026-06-15 |
| 3.0.1 | 2026-06-15 |
| 3.0.0 | 2026-04-14 |
| 2.5.1 | 2025-11-21 |
| 2.5.0 | 2025-04-23 |
| 2.4.50 | 2024-07-01 |
| 2.4.49 | 2024-06-20 |
| 2.4.48 | 2024-06-11 |
| 2.4.47 | 2023-10-24 |

Showing 10 of 123 versions. Full release history on https://packagento.com/vipps/module-payment.

## Dependencies

### Require

| Package | Constraint |
|---|---|
| magento/framework | 101.0.*\|103.0.* |
| magento/module-checkout | 100.2.*\|100.4.* |
| magento/module-payment | 100.2.*\|100.4.* |
| magento/module-sales | 101.0.*\|103.0.* |
| psr/log | ^1.0\|\|^2.0\|\|^3.0 |

### Require (dev)

| Package | Constraint |
|---|---|
| phpmd/phpmd | @stable |
| phpunit/phpunit | ^9.0 |
| squizlabs/php_codesniffer | @stable |

## Quality

Latest release (3.0.3) 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 | Pass | Pass | – | – |
| 2.4.8 | – | Pass | Pass | – |
| 2.4.9 | – | – | Pass | Pass |


### 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 | Fail | 549 | 1 error, 548 warnings (ruleset: Magento2) — 251 auto-fixable with phpcbf |
| PHPMD | Warning | 83 | 83 rule violations (UnusedPrivateField:31, UnusedFormalParameter:30, MissingImport:14, UnusedPrivateMethod:5, UnusedLocalVariable:2) |
| Cpd | Pass | 0 |  |
| Composer validate | Info | 1 | valid; 1 advisory note (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 | 227 | 227 | – | – |
| 2.4.8 | – | 228 | 228 | – |
| 2.4.9 | – | – | 228 | 228 |


### 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 | 18 | 18 | – | – |
| 2.4.8 | – | 22 | 22 | – |
| 2.4.9 | – | – | 17 | 17 |

#### 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=["vipps/module-payment"],
  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

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

