antom-magento / magento2-frontend
Antom frontend module for magento 2
Installs: 38
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Language:JavaScript
Type:magento2-module
pkg:composer/antom-magento/magento2-frontend
Requires
- magento/framework: >=103.0.2
- magento/module-checkout: >=100.4.2
- magento/module-payment: >=100.4.2
- magento/module-sales: >=103.0.2
README
Antom Payment Frontend Module for Magento 2. This module provides the frontend functionality for integrating Antom payment gateway with Magento 2, including payment UI components and user experience features.
Features
- Payment UI Components: Complete payment interface and user experience
- Multiple Payment Methods: Support for Alipay, credit cards
- Frontend Integration: Seamless integration with Magento checkout process
- Responsive Design: Mobile-friendly payment interface
Requirements
Magento Version Support
- Magento 2.4.x: PHP 7.4+ recommended
System Requirements
- PHP: ^7.4 || ^8.0
- Composer: 2.x
Magento Dependencies
- Magento Framework 101.0+ (2.3.x+)
- Magento Sales Module 101.0+
- Magento Checkout Module 100.0+
- Magento Payment Module 100.0+
- Magento Quote Module 100.0+
- Magento Store Module 100.0+
- Magento Customer Module 101.0+
- Magento UI Module 100.0+
Installation
Via Composer (Recommended)
composer require ant-intl/plugin-magento2-frontend
Manual Installation
- Download the module
- Extract to
app/code/Antom/Frontend - Run:
bin/magento module:enable Antom_Frontend bin/magento setup:upgrade bin/magento setup:di:compile bin/magento setup:static-content:deploy bin/magento cache:flush
Configuration
Configure the module in Magento Admin:
- Go to Stores > Configuration > Antom > Payment Settings
- Configure frontend display settings
Frontend Configuration
- Log in to the Magento Admin Panel
- Navigate to Stores > Configuration > Sales > Payment Methods
- Find the Antom Payment Methods section
- Configure the enabled status and parameters for each payment method
Custom Styling
The module provides customizable CSS files located at:
view/frontend/web/css/payment.css
You can override the default styles by creating a custom theme.
Supported Payment Methods(US region only)
- Alipay (Alipay CN): Support for mainland China Alipay payments
- Credit Card Payments: Support for Visa, MasterCard, AMEX, JCB, Diners Club, Discover, UnionPay
Compatibility Matrix
| Magento Version | PHP Version | Status |
|---|---|---|
| 2.3.0 - 2.3.4 | 7.4 | ✅ Supported |
| 2.3.5 - 2.3.7 | 7.4 | ✅ Supported |
| 2.4.0 - 2.4.3 | 8.0 | ✅ Supported |
| 2.4.4+ | 8.1+ | ✅ Supported |
Development
Project Structure
Antom/Frontend/
├── Block/ # Block classes for frontend logic
├── Model/ # Frontend models
├── view/ # View files
│ ├── frontend/ # Frontend views
│ │ ├── layout/ # Layout XML files
│ │ ├── templates/ # PHTML template files
│ │ └── web/ # Static resources
│ │ ├── css/ # Stylesheets
│ │ ├── images/ # Payment icons
│ │ └── js/ # JavaScript files
├── i18n/ # Internationalization files
├── etc/ # Configuration files
├── registration.php # Module registration
├── composer.json # Composer configuration
└── README.md # This file
CI/CD
This module includes:
- Travis CI configuration for automated testing
- PHPUnit for unit testing
- Code coverage reporting
Troubleshooting
Common Issues
- Static Content Deployment Error: Run
bin/magento setup:static-content:deploy - CSS Not Loading: Check file permissions and clear cache
- JavaScript Errors: Check browser console for conflicts
- Payment Method Not Showing: Verify module is enabled and configured (Note: Only available in US region)
- Layout Issues: Check theme compatibility and custom CSS
Support
For issues and questions, please refer to the official documentation or create an issue in the repository.
License
This module is licensed under the MIT License.