定制 fond-of-oryx/payment-address-restriction 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

fond-of-oryx/payment-address-restriction

最新稳定版本:2.0.1

Composer 安装命令:

composer require fond-of-oryx/payment-address-restriction

包简介

README 文档

README

license

What it does

Installation

composer require fond-of-oryx/payment-address-restriction

Usage

register the plugins in your dependency provider

i.E.: Pyz\Zed\Payment\PaymentDependencyProvider.php

/**
 * @return array<int, \Spryker\Zed\PaymentExtension\Dependency\Plugin\PaymentMethodFilterPluginInterface>|array<int, \Spryker\Zed\Payment\Dependency\Plugin\Payment\PaymentMethodFilterPluginInterface>
 */
protected function getPaymentMethodFilterPlugins(): array
{
    return [
        ...,
        new CountryRestrictionPaymentMethodFilterPlugin(),
        new IdenticalAddressRestrictionPaymentMethodFilterPlugin(),
    ];
}

add the following configuration to your config-file

$config[PaymentAddressRestrictionConstants::BLACKLISTED_PAYMENT_COUNTRY_COMBINATIONS] = [
    'payment-method-name' => ['DE', 'AT', 'CH'], // payment method only allowed for DE, AT, CH
];

$config[PaymentAddressRestrictionConstants::BLACKLISTED_PAYMENT_IDENTICAL_ADDRESS_REQUIRED] = [
    'payment-method-name' // shipping- and billing address must equal
];

统计信息

  • 总下载量: 12.97k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-05-09