tapbuy / magento2-forter
Tapbuy Forter Integration for Magento 2
Package info
github.com/tapbuy/magento2-forter
Type:magento2-module
pkg:composer/tapbuy/magento2-forter
Requires
- php: ^7.4 || ^8.1
- magento/framework: ^103.0
- magento/module-customer: ^103.0
- magento/module-quote-graph-ql: ^100.4
- magento/module-sales: ^103.0
- tapbuy/redirect-tracking: ^1.8.0
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
This module integrates Forter fraud prevention into Magento 2 for Tapbuy checkout.
Requirements
- Magento 2.4.x
- PHP 8.1+
tapbuy/magento2-redirect-trackingmodule
Installation
composer require tapbuy/magento2-forter bin/magento module:enable Tapbuy_Forter bin/magento setup:upgrade bin/magento cache:flush
Structure
Api/- API interfacesException/- Custom exceptionsModel/- Business logic modelsObserver/- Event observersPlugin/- Magento pluginsetc/- Module configuration
Related Modules
- tapbuy/magento2-forter-adyen - Forter integration with Adyen payment gateway
Development
Running Tests
Tests run inside a Docker container that replicates the CI environment (PHP 8.3, Magento 2.4.7-p5). Docker must be running.
Prerequisites: clone the following sibling repository next to this one:
# From the parent directory
git clone git@github.com:tapbuy/magento-redirect-plugin.git redirect-tracking
First-time setup:
cp auth.json.dist auth.json
# Fill in your repo.magento.com public/private keys in auth.json
Run all unit tests:
make test
On the first run, the Docker image is built and Magento is installed into a named volume (tapbuy-magento-2.4.7-p5-php83). Subsequent runs reuse the cached volume and are fast.
Do not use
composer test— it runs PHPUnit without the Magento bootstrap and will fail or produce misleading results.
Linting
Linting runs PHPMD and PHPCS (Magento2 standard) inside the same Docker container as tests. Docker must be running.
Run both linters:
make lint
Run individually:
make phpmd # PHP Mess Detector make phpcs # PHP CodeSniffer (Magento2 standard)
Both linters always run when using make lint; if either fails, the command exits with a non-zero code.