Enable filtering of payment methods for Ayden

Edit on GitHub

Adyen module provides filtering available payment methods depend on result of /paymentMethods API call.

To enable this add \SprykerEco\Zed\Adyen\Communication\Plugin\AdyenPaymentMethodFilterPlugin to filter plugins list in 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 array<\Spryker\Zed\PaymentExtension\Dependency\Plugin\PaymentMethodFilterPluginInterface>
     */
    protected function getPaymentMethodFilterPlugins(): array
    {
        return [
            ...
            new AdyenPaymentMethodFilterPlugin(),
        ];
    }
}