Search by

tapbuy / magento2-forter

valentin_tapbuy

Tapbuy Forter Integration for Magento 2

Package info

github.com/tapbuy/magento2-forter

Type:magento2-module

pkg:composer/tapbuy/magento2-forter

Statistics

Installs: 1

Dependents: 1

Suggesters: 0

Stars: 0

1.3.0 2026-03-11 12:14 UTC

This package is auto-updated.

Last update: 2026-10-09 23:40:19 UTC


README

This module integrates Forter fraud prevention into Magento 2 for Tapbuy checkout.

Requirements

  • Magento 2.4.x
  • PHP 8.1+
  • tapbuy/magento2-redirect-tracking module

Installation

composer require tapbuy/magento2-forter
bin/magento module:enable Tapbuy_Forter
bin/magento setup:upgrade
bin/magento cache:flush

Structure

  • Api/ - API interfaces
  • Exception/ - Custom exceptions
  • Model/ - Business logic models
  • Observer/ - Event observers
  • Plugin/ - Magento plugins
  • etc/ - Module configuration

Related Modules

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.