承接 fond-of-oryx/payment-total-amount-restriction 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

fond-of-oryx/payment-total-amount-restriction

最新稳定版本:2.0.0

Composer 安装命令:

composer require fond-of-oryx/payment-total-amount-restriction

包简介

README 文档

README

license

What it does

restriction maximum allowed total amount for payment methods

Installation

composer require fond-of-oryx/payment-total-amount-restriction

Usage

register the plugin 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 TotalAmountRestrictionPaymentMethodFilterPlugin(),
    ];
}

add the following configuration to your config-file

$config[PaymentTotalAmountRestrictionConstants::TOTAL_AMOUNT_RESTRICTED_PAYMENT_METHOD_COMBINATIONS] = [
    'payment-method-name => 500000 // max amount 500.00
];

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-04-22