This module excludes payment methods from checkout by using filters.
This module allows to exclude active payment methods from checkout.
The following table shows the predefined filters which control the state of payment methods:
Name | Description |
---|---|
GuestFilter | This filter is only for guest checkout. All disallowed payment methods for guests can be set at the system configuration. |
CustomerFilter | Excludes active payment by the customer attribute "disallowed_payment_methods". Only available for customer checkout. |
QuoteContentFilter | The product attribute "disallowed_payment_methods" controls which payment method can be removed from the active list. Available for both checkout types. |
Open the command line and run the following commands
cd PATH_TO_MAGENTO_2_ROOT
composer require dr/payment-method-filter
- Download the ZIP-Archive
- Extract files
- Copy the extracted Files to PATH_TO_MAGENTO_2_ROOT/app/code/DR/PaymentMethodFilter
- Run the following Commands:
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy
If you have any issues with this extension, open an issue on GitHub (see URL above).
Any contributions are highly appreciated. The best way to contribute code is to open a pull request on GitHub.
Daniel Rose
(c) 2016 Daniel Rose