1 | <?php |
||
2 | |||
3 | /** |
||
4 | * MIT License |
||
5 | * For full license information, please view the LICENSE file that was distributed with this source code. |
||
6 | */ |
||
7 | |||
8 | namespace SprykerEco\Zed\CrefoPay\Communication\Plugin; |
||
9 | |||
10 | use Generated\Shared\Transfer\PaymentMethodsTransfer; |
||
11 | use Generated\Shared\Transfer\QuoteTransfer; |
||
12 | use Spryker\Zed\Kernel\Communication\AbstractPlugin; |
||
13 | use Spryker\Zed\Payment\Dependency\Plugin\Payment\PaymentMethodFilterPluginInterface; |
||
14 | |||
15 | /** |
||
16 | * @method \SprykerEco\Zed\CrefoPay\Business\CrefoPayFacadeInterface getFacade() |
||
17 | * @method \SprykerEco\Zed\CrefoPay\Communication\CrefoPayCommunicationFactory getFactory() |
||
18 | * @method \SprykerEco\Zed\CrefoPay\CrefoPayConfig getConfig() |
||
19 | * |
||
20 | * @SuppressWarnings(PHPMD.NewPluginExtensionModuleRule) |
||
21 | */ |
||
22 | class CrefoPayPaymentMethodFilterPlugin extends AbstractPlugin implements PaymentMethodFilterPluginInterface |
||
0 ignored issues
–
show
|
|||
23 | { |
||
24 | /** |
||
25 | * {@inheritDoc} |
||
26 | * - Takes allowed payment methods from the QuoteTransfer received in CreateTransaction API call. |
||
27 | * - Filters payment methods based on allowed payment methods. |
||
28 | * |
||
29 | * @api |
||
30 | * |
||
31 | * @param \Generated\Shared\Transfer\PaymentMethodsTransfer $paymentMethodsTransfer |
||
32 | * @param \Generated\Shared\Transfer\QuoteTransfer $quoteTransfer |
||
33 | * |
||
34 | * @return \Generated\Shared\Transfer\PaymentMethodsTransfer |
||
35 | */ |
||
36 | public function filterPaymentMethods( |
||
37 | PaymentMethodsTransfer $paymentMethodsTransfer, |
||
38 | QuoteTransfer $quoteTransfer |
||
39 | ): PaymentMethodsTransfer { |
||
40 | return $this->getFacade()->filterPaymentMethods($paymentMethodsTransfer, $quoteTransfer); |
||
41 | } |
||
42 | } |
||
43 |
This interface has been deprecated. The supplier of the interface has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the interface will be removed and what other interface to use instead.