Adyen - Filtering Payment Methods
Adyen module provides filtering of available payment methods which depends on the result of /paymentMethods API call.
To enable this add \SprykerEco\Zed\Adyen\Communication\Plugin\AdyenPaymentMethodFilterPlugin to the list of filter plugins:
src/Pyz/Zed/Payment/PaymentDependencyProvider.php
<?php
/**
* This file is part of the Spryker Suite.
* For full license information, please view the LICENSE file that was distributed with this source code.
*/
namespace Pyz\Zed\Payment;
...
use SprykerEco\Zed\Adyen\Communication\Plugin\AdyenPaymentMethodFilterPlugin;
class PaymentDependencyProvider extends SprykerPaymentDependencyProvider
{
/**
* @return \Spryker\Zed\Payment\Dependency\Plugin\Payment\PaymentMethodFilterPluginInterface[]
*/
protected function getPaymentMethodFilterPlugins()
{
return [
...
new AdyenPaymentMethodFilterPlugin(),
];
}
}
See also:
Last review date: November, 16th, 2018