fond-of-oryx / gift-card-payment-connector
n/a
2.0.0
2023-01-20 13:06 UTC
Requires
- php: >=8.0
- spryker/payment-extension: ^1.0.0
Requires (Dev)
README
Description
Module provides a configuration for payment methods that are NOT available within gift-cart as payment-method.
Installation
composer require fond-of-oryx/gift-card-payment-connector
Configuration
Register GiftCardPaymentConnectorPaymentMethodFilterPlugin in your PaymentDependencyProvider at getPaymentMethodFilterPlugins()
/**
* @return \Spryker\Zed\PaymentExtension\Dependency\Plugin\PaymentMethodFilterPluginInterface[]
*/
protected function getPaymentMethodFilterPlugins(): array
{
return [
new GiftCardPaymentConnectorPaymentMethodFilterPlugin(),
];
}
After that you need to configure which payment-method you want to block while using gift-card as payment-method i.e.
$config[GiftCardPaymentConnectorConstants::NOT_ALLOWED_PAYMENT_METHODS] = [
'prepaymentPrepayment',
];