fond-of-oryx / gift-card-payment-connector
n/a
Installs: 14 982
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
pkg:composer/fond-of-oryx/gift-card-payment-connector
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',
];