customgento / module-invoice-m2

customgento/module-invoice-m2

This Magento 2 module extends the default purchase order payment method by a customer group and admin filter.

magento2-module Compatibility: 2.4.7-2.4.9 Code Quality: Pass Tests: Fail Security: Pass OSL-3.0

CustomGento_Invoice (Magento 2)

This Magento 2 module extends the default purchase order payment method by a customer group and admin filter. You can use it to allow the payment method only for specific customer groups or disable it in the checkout and use it only in the admin area.

Features

  • Define that the payment method should only be available for specific customer groups.
  • Define that the payment method should only be available in the backend.

Compatibility

  • Magento >= 2.3.3

Installation Instructions

The installation procedure highly depends on your setup. In any case, you should use a version control system like git and test the installation on a development system.

Composer Installation

  1. composer require customgento/module-invoice-m2
  2. bin/magento module:enable CustomGento_Invoice
  3. bin/magento setup:upgrade
  4. bin/magento setup:di:compile
  5. bin/magento cache:flush

Manual Installation

  1. unzip the downloaded files
  2. create the directory app/code/CustomGento/Invoice/: mkdir -p app/code/CustomGento/Invoice/
  3. copy the unzipped files to the newly created directory app/code/CustomGento/Invoice/
  4. bin/magento module:enable CustomGento_Invoice
  5. bin/magento setup:upgrade
  6. bin/magento setup:di:compile
  7. bin/magento cache:flush

Uninstallation

The installation procedure depends on your setup:

Uninstallation After Composer Installation

  1. bin/magento module:uninstall CustomGento_Invoice
  2. bin/magento setup:di:compile
  3. bin/magento cache:flush

Uninstallation After Manual Installation

  1. bin/magento module:disable CustomGento_Invoice
  2. bin/magento setup:di:compile
  3. bin/magento cache:flush
  4. rm -r app/code/CustomGento/Invoice

Support

If you have any issues with this extension, feel free to open an issue on GitHub.

Licence

Open Software License 3.0

Copyright

© 2018 - present CustomGento / Simon Sprankel

No changelog yet

The vendor hasn't published a changelog. Tagged releases appear in the Versions tab.

Versions
Version Stability QA Status Compatibility Released
1.1.0 stable Pass Magento 2.4.7-2.4.9 Details 2026-05-29 04:56:41
1.0.6 stable Not tested Not yet tested Details 2026-01-05 10:30:42
1.0.5 stable Not tested Not yet tested Details 2024-05-26 19:39:16
1.0.4 stable Not tested Not yet tested Details 2023-06-19 12:42:03
1.0.3 stable Not tested Not yet tested Details 2022-05-04 11:10:27
1.0.2 stable Not tested Not yet tested Details 2020-11-18 15:21:43
1.0.1 stable Not tested Not yet tested Details 2020-11-18 14:08:24
1.0.0 stable Not tested Not yet tested Details 2019-12-20 10:01:37

Requires 8

Package Constraint
php ~7.3.0||~7.4.0||~8.1.0||~8.2.0||~8.3.0||~8.4.0||~8.5.0
magento/framework ~102.0||~103.0
magento/module-backend ~101.0||~102.0
magento/module-config ~101.1
magento/module-customer ~102.0||~103.0
magento/module-offline-payments ~100.3||~100.4
magento/module-quote ~101.1
magento/module-store ~101.0

Compatibility

Each Magento release line is installed on its supported PHP versions, then the module is built (DI compilation + static-content deploy) and its unit and integration suites are run. The matrix shows the lines and PHP versions the module is confirmed to install and run on. Code-quality results further down (phpstan, phpcs, …) are reported separately and never affect compatibility.

Compatibility matrix (Magento × PHP)
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. Static analysis runs once across the whole module; PHPStan re-runs per Magento + PHP version because resolvable symbols differ between releases. These NEVER affect the Compatibility badge — 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.

Static analysis results
Tool Status Findings Summary
PHPCS Pass 0
PHPMD Pass 0
Cpd Pass 0
Composer validate Pass 0

PHPStan

Type-checks the module's PHP against a real Magento install at the configured gate level. Re-runs per Magento and PHP version because resolvable symbols differ between releases. Cell → details modal.

PHPStan results by Magento and PHP version
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

Tests

Unit and integration suites, run for each applicable Magento and PHP version. A test failure speaks to the module's behaviour, not its compatibility with a Magento line, so it is reported here separately and never reddens the compatibility matrix.

Unit tests

Unit tests results by Magento and PHP version
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

Integration tests results by Magento and PHP version
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 not tested not tested
2.4.8 not tested not tested
2.4.9 Error not tested

Security

Security checks run directly against the module: an audit of its declared dependencies for known vulnerabilities (composer audit) and a scan of its source for malware and web-shell signatures. Each runs once. A malware detection fails the version outright.

Security results
Tool Status Findings Summary
Composer audit Pass 0
Malware scan Pass 0
License
OSL-3.0

More from customgento

View vendor
Make it pay

Turn an existing module into recurring revenue.

If you already maintain a Magento 2 module on GitHub or GitLab, listing it on Packagento takes about five minutes. We mirror your tags, handle distribution signing, and route paid licenses through Stripe Connect, so you can keep shipping the way you already do.