- Two Gateway Module Version: 1.14.2
This document provides instructions for installing the Two Gateway Payment Method module with Hyvä Checkout compatibility for Magento 2. This module ensures a seamless payment experience for stores using the Hyvä frontend.
| Component | Version | Link |
|---|---|---|
| Magento | 2.4.x | Release Notes |
| Two Gateway Module | ^1.13.1 | two-inc/magento-plugin |
| Hyvä Checkout | ^1.3 | Hyvä Checkout |
- Hyvä Theme and Hyvä Checkout module installed.
- Access to the Hyvä private composer repository.
- Node.js and Tailwind dependencies installed for building CSS.
Use composer to install the necessary Hyvä packages:
composer config repositories.private-packagist composer {repositories path}
composer config --auth http-basic.hyva-themes.repo.packagist.com token {token}
composer require hyva-themes/magento2-default-theme
composer require hyva-themes/magento2-hyva-checkoutConfigure basic settings via the Magento Admin:
Admin > Stores > Settings > Configuration > Hyvä Themes > Checkout
- Download and extract the module's ZIP package.
- Connect to your Magento server.
- Upload the module files to
app/code/Two/GatewayHyva.
Execute the following commands from your Magento root directory:
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy -f
php bin/magento cache:clean
php bin/magento cache:flushRun the Hyvä configuration generator:
php bin/magento hyva:config:generateFor custom Hyvä themes:
npm --prefix app/design/frontend/<Vendor>/<Theme>/web/tailwind run ci
npm --prefix app/design/frontend/<Vendor>/<Theme>/web/tailwind run build-prodFor the default Hyvä theme:
npm --prefix vendor/hyva-themes/magento2-default-theme/web/tailwind run ci
npm --prefix vendor/hyva-themes/magento2-default-theme/web/tailwind run build-prodSet up your Two Gateway credentials and settings in the Magento Admin:
Admin > Stores > Configuration > Two Gateway
- Check the module is enabled:
php bin/magento module:status | grep Two_GatewayHyva - Navigate to your store's frontend checkout page
- Verify that the Two Gateway payment method is visible
- Place a test order to ensure everything is working correctly
- Ensure Hyvä theme is properly installed
- Check Magento logs:
var/log/system.logandvar/log/exception.log - Verify CSP (Content Security Policy) settings if scripts are blocked
- Clear all caches after installation
For developers looking to extend or customize the Two Gateway Hyva module, follow these steps:
- Install
direnvanduvand configure.envrcfile withlayout python. - Install the required tools and dependencies:
direnv allow
uv tool install bumpver
uv tool install pre-commit
pre-commit install