Download the PHP package wamoco/magento2-payment-method-filter without Composer
On this page you can find all versions of the php package wamoco/magento2-payment-method-filter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download wamoco/magento2-payment-method-filter
More information about wamoco/magento2-payment-method-filter
Files in wamoco/magento2-payment-method-filter
Download wamoco/magento2-payment-method-filter
More information about wamoco/magento2-payment-method-filter
Files in wamoco/magento2-payment-method-filter
Vendor wamoco
Package magento2-payment-method-filter
Short Description Magento 2 Module to filter payment methods
License
Package magento2-payment-method-filter
Short Description Magento 2 Module to filter payment methods
License
Please rate this library. Is it a good library?
Informations about the package magento2-payment-method-filter
Magento 2 Payment Method Filter
Module to implement custom filter logic for payment methods.
In your module di.xml
declare the filter:
<type name="Wamoco\PaymentMethodFilter\Model\FilterProcessor">
<arguments>
<argument name="filters" xsi:type="array">
<item name="checkmo" xsi:type="object">Vendor\Module\Model\Filter</item>
</argument>
</arguments>
</type>
And implement it like this:
class Filter implements \Wamoco\PaymentMethodFilter\Api\FilterInterface
{
public function isFiltered(
\Magento\Quote\Api\Data\PaymentMethodInterface $method,
\Magento\Quote\Api\Data\CartInterface $quote
) {
if ($method->getCode() == 'checkmo') {
return true;
}
return false;
}
}
All versions of magento2-payment-method-filter with dependencies
PHP Build Version
Package Version
Requires
wamoco/magento2-common Version
>=1.0.0
The package wamoco/magento2-payment-method-filter contains the following files
Loading the files please wait ....