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
描述
此模块提供了配置,用于支付方式,这些支付方式在礼品卡支付方式中不可用。
安装
composer require fond-of-oryx/gift-card-payment-connector
配置
在PaymentDependencyProvider中的getPaymentMethodFilterPlugins()方法中注册GiftCardPaymentConnectorPaymentMethodFilterPlugin
/**
* @return \Spryker\Zed\PaymentExtension\Dependency\Plugin\PaymentMethodFilterPluginInterface[]
*/
protected function getPaymentMethodFilterPlugins(): array
{
return [
new GiftCardPaymentConnectorPaymentMethodFilterPlugin(),
];
}
之后,您需要配置在以礼品卡作为支付方式时想要阻止的支付方式,例如。
$config[GiftCardPaymentConnectorConstants::NOT_ALLOWED_PAYMENT_METHODS] = [
'prepaymentPrepayment',
];