dr/payment-method-filter

This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.

This module excludes payment methods from checkout by using filters.

dev-master 2019-10-07 09:05 UTC

This package is auto-updated.

Last update: 2021-10-07 13:44:17 UTC


README

Build Status Coverage Status

DR_PaymentMethodFilter

This module excludes payment methods from checkout by using filters.

Description

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.

Installation

Via composer

Open the command line and run the following commands

cd PATH_TO_MAGENTO_2_ROOT
composer require dr/payment-method-filter

Via archive

  • 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

Support

If you have any issues with this extension, open an issue on GitHub (see URL above).

Contribution

Any contributions are highly appreciated. The best way to contribute code is to open a pull request on GitHub.

Developer

Daniel Rose

Licence

MIT License

Copyright

(c) 2016 Daniel Rose