viraxpress / payment-restriction
ViraXpress Payment Restriction Module for Magento 2
Package info
github.com/viraxpress/PaymentRestriction
Type:magento2-module
pkg:composer/viraxpress/payment-restriction
1.0.0
2026-04-17 11:16 UTC
Requires
- php: ~8.1.0||~8.2.0||~8.3.0||~8.4.0
README
Payment Restriction is a Magento 2 module that lets store administrators define rules to restrict payment methods by store view, customer group, day of week, date range, and custom cart conditions.
Features
- Admin rule builder for restricting payment methods during checkout
- Multi-select restrictions by store view and customer group
- Restrict by day(s) of the week
- Optional start and end date scheduling for rules
- Enable or disable each rule independently
- Apply restrictions to frontend checkout and optionally admin orders
- Use Magento rule conditions to target specific cart/shipping criteria
- Admin grid with add/edit/delete and mass enable/disable actions
- Global module enable/disable switch under system configuration
Compatibility
- Magento 2.4.x
Installation
-
Install the extension via Composer:
composer require viraxpress/payment-restriction
-
Run the following commands from your Magento root directory:
php bin/magento module:enable ViraXpress_PaymentRestriction php bin/magento setup:upgrade php bin/magento setup:di:compile php bin/magento setup:static-content:deploy -f php bin/magento cache:flush
Configuration
- Admin menu:
Stores > Manage Payment Restriction > Payment Restriction Rule - System config:
Stores > Configuration > ViraXpress > Payment Restriction - Use the global
Enable Payment Restriction Modulesetting to turn module behavior on or off.
Support
For support, please contact ViraXpress at https://www.viraxpress.com or refer to the license agreement.
License
This extension is licensed under the ViraXpress license agreement. See https://www.viraxpress.com/license for details.