# multisafepay/magento2-frontend

> MultiSafepay frontend module for Magento 2

`composer require multisafepay/magento2-frontend`

Canonical URL: https://packagento.com/multisafepay/magento2-frontend

## At a glance

- **Vendor**: multisafepay (https://packagento.com/multisafepay.md)
- **Latest version**: 3.0.1 — released 2026-05-18
- **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/multisafepay/magento2-frontend 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 multisafepay/magento2-frontend:*
   bin/magento setup:upgrade
   bin/magento setup:di:compile
   bin/magento cache:flush
   ```

## What it does

MultiSafepay frontend module for Magento 2

## README

<p align="center">
  <img src="https://www.multisafepay.com/fileadmin/template/img/multisafepay-logo.svg" width="400px" position="center">
</p>

## MultiSafepay plugin for Magento 2 (Frontend module)

ℹ️ This is the frontend module of our Magento 2 plugin.
For a complete installation of all our features, please check out our [meta package](https://github.com/MultiSafepay/magento2/).

### Installation

This module can be installed via composer:

```shell
composer require multisafepay/magento2-frontend
```

Next, enable the module and its dependant modules:
```bash
bin/magento module:enable MultiSafepay_ConnectCore MultiSafepay_ConnectFrontend MultiSafepay_ConnectAdminhtml
```

Next, run the following commands:
```shell
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy
```

**Please keep in mind that after installing this module, you will not have proper stock handling.**

For a quick installation of all the modules, we recommend using [the meta package](https://github.com/MultiSafepay/magento2) instead.

For the modules that handle stock, please take a look at the [MSI module](https://github.com/MultiSafepay/magento2-msi) or the [Catalog Inventory module](https://github.com/MultiSafepay/magento2-catalog-inventory) depending on your Magento configuration.

### Support
You can create issues on our repository. If you need any additional help or support, please contact <a href="mailto:integration@multisafepay.com">integration@multisafepay.com</a>

We are also available on our Magento Slack channel [#multisafepay-payments](https://magentocommeng.slack.com/messages/multisafepay-payments/). 
Feel free to start a conversation or provide suggestions as to how we can refine our Magento 2 plugin.

### A gift for your contribution
We look forward to receiving your input. Have you seen an opportunity to change things for better? We would like to invite you to create a pull request on GitHub.
Are you missing something and would like us to fix it? Suggest an improvement by sending us an [email](mailto:integration@multisafepay.com) or by creating an issue.

What will you get in return? A brand new designed MultiSafepay t-shirt which will make you part of the team!

### License
[Open Software License (OSL 3.0)](https://github.com/MultiSafepay/Magento2Msp/blob/master/LICENSE.md)

### Want to be part of the team?
Are you a developer interested in working at MultiSafepay? [View](https://www.multisafepay.com/careers/#jobopenings) our job openings and feel free to get in touch with us.

## Changelog

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

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

### [3.0.1] - 2026-05-18
#### Fixed
- PLGMAG2V2-906: Fixed an issue where a 'Temporarily Unavailable' message would be shown after being idle in the checkout for a while, due to the API token expiring and not being refreshed

### [3.0.0] - 2026-03-17
#### Added
- PLGMAG2V2-888: Added logic to retrieve orders via redirect tokens (instead of via direct order/session access) for payment redirects, with supporting Javascript refactoring for all payment methods.

### [2.14.0] - 2026-02-18
#### Added
- DAVAMS-913: Added several EAA improvements

### [2.13.0] - 2026-01-21
#### Added
- PLGMAG2V2-871: Added changes that enable Google Analytics cross browser/device tracking

#### Fixed
- PLGMAG2V2-882: Fixed an issue where an old cart overwrites new cart items when an order was previously placed but not finished

#### Changed
- PLGMAG2V2-880: Improved the logs for the 'cancel' & 'success' controllers

#### Removed
- PLGMAG2V2-810: Deprecated the Sofort payment method

### [2.12.0] - 2025-09-12
#### Changed
- PLGMAG2V2-867: Improved when to save the quote on the Cancel controller, it will now save if the payment actually has any additional information that needs to be removed

#### Removed
- DAVAMS-918: Deprecated Zinia payment method

### [2.11.1] - 2025-08-22
#### Fixed
- PLGMAG2V2-855: Fixed an issue with restoring the cart when using the browser back button on the payment page for Amasty Checkout (Pro) (Now also fixed in Magento version 2.3.7)

### [2.11.0] - 2025-07-29
#### Added
- PLGMAG2V2-852: Added support for Bancontact WIP in Magento Vault
- PLGMAG2V2-859: Added CODE_OF_CONDUCT.md

#### Fixed
- PLGMAG2V2-860: Fixed an issue where some orders do not have correct values after invoice creation with a specific Amasty Checkout Pro configuration

### [2.10.0] - 2025-07-09
#### Added
- PLGMAG2V2-856: Added logging for payment component requests

#### Fixed
- PLGMAG2V2-855: Fixed an issue with restoring the cart when using the browser back button on the payment page for third party checkouts like Amasty Checkout (Pro)

### [2.9.0] - 2025-05-20
#### Removed
- DAVAMS-901: Removed the deprecated payment method 'Alipay'

### [2.8.2] - 2025-04-02
#### Fixed
- HYVA-31: Fixed Cart Alive Issue in Hyvä Checkout

### [2.8.1] - 2025-02-24
#### Changed
- PLGMAG2V2-829: Enable Sofort and Dotpay payment methods
- PLGMAG2V2-815: Add delay for cancel controller to wait for order to cancel

#### Removed
- DAVAMS-840: Remove gender requirement for in3

### [2.8.0] - 2024-01-09
#### Added
- DAVAMS-852: Added the Billink payment method
- DAVAMS-817: Added the Bizum payment method
- PLGMAG2V2-814: Added a payment method instructions field

#### Removed
- PLGMAG2V2-810: Removed the following deprecated methods: Santander, Giropay, Sofort, Request to pay and Dotpay

### [2.7.1] - 2024-09-20
#### Changed
- DAVAMS-795: Rebrand the logo's, titles and labels from AfterPay to Riverty

### [2.7.0] - 2024-08-30
#### Added
- PLGMAG2V2-779: Added payment component for BNPL methods

#### Changed
- PLGMAG2V2-785: Upgraded payment icon for MultiSafepay method

#### Removed
- PLGMAG2V2-784: Removed issuers from iDEAL
- PLGMAG2V2-706: Removed payment component Onload console.log

### [2.6.2] - 2024-08-06
#### Fixed
PLGMAG2V2-780: Fixed an issue where Store Credit would be returned twice

#### Changed
- PLGMAG2V2-778: Coupons will now be canceled through the OrderService on order cancelation and will happen either through the Notification webhook request or when restoring the cart, depending on the type of transaction

_(Changelog truncated for .md surface. Full history on https://packagento.com/multisafepay/magento2-frontend.)_

## Recent Versions

| Version | Released |
|---|---|
| 3.0.1 | 2026-05-18 |
| 3.0.0 | 2026-03-18 |
| 2.14.0 | 2026-02-18 |
| 2.13.0 | 2026-01-22 |
| 2.12.0 | 2025-09-15 |
| 2.11.1 | 2025-08-22 |
| 2.11.0 | 2025-07-29 |
| 2.10.0 | 2025-07-09 |
| 2.9.0 | 2025-05-20 |
| 2.8.2 | 2025-04-03 |

Showing 10 of 62 versions. Full release history on https://packagento.com/multisafepay/magento2-frontend.

## Dependencies

### Require

| Package | Constraint |
|---|---|
| magento/framework | ^102.0\|^103.0 |
| magento/module-checkout | ^100.0 |
| magento/module-quote | ^101.0 |
| magento/module-sales | ^102.0\|^103.0 |
| magento/module-store | ^101.0 |
| multisafepay/magento2-adminhtml | ^1.37 |
| multisafepay/magento2-core | ^3.19 |

## Quality

Latest release (3.0.1) 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 | Pass | 0 |  |
| PHPMD | Warning | 8 | 8 rule violations (IfStatementAssignment:4, MissingImport:4) |
| 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 | 90 | 90 | – | – |
| 2.4.8 | – | 93 | 93 | – |
| 2.4.9 | – | – | 93 | 93 |


### 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=["multisafepay/magento2-frontend"],
  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

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

