22 private $instanceFactory;
27 private $paymentMethodList;
36 $this->instanceFactory = $instanceFactory;
37 $this->paymentMethodList = $paymentMethodList;
45 return $this->filterList($this->paymentMethodList->getList(
$storeId));
53 return $this->filterList($this->paymentMethodList->getActiveList(
$storeId));
61 private function filterList(array $list)
65 return $this->instanceFactory->create($paymentMethod);
70 $availableMethods = array_filter(
72 function (MethodInterface $methodInstance) {
73 return $methodInstance instanceof VaultPaymentInterface;
76 return array_values($availableMethods);
__construct(PaymentMethodListInterface $paymentMethodList, InstanceFactory $instanceFactory)