定制 fond-of-spryker/oms-external-processor-payone 二次开发

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

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

fond-of-spryker/oms-external-processor-payone

Composer 安装命令:

composer require fond-of-spryker/oms-external-processor-payone

包简介

Spryker OMS External Processor Payone Module.

README 文档

README

Build Status PHP from Travis config license

Plugin for the external processor module: https://packagist.org/packages/fond-of-spryker/oms-external-processor Wait for the order that all items are captured and then process at once instead of sending or exporting a splitted order.

Installation

composer require fond-of-spryker/oms-external-processor-payone

Configuration

Extend in PYZ the OmsExternalProcessorDependencyProvider

/**
 * @return \FondOfSpryker\Zed\OmsExternalProcessor\Dependency\Plugin\ExternalProcessorPluginInterface[]
 */
protected function getExternalProcessorPlugins(): array
{
    return [
        new PayoneCaptureCheckExternalProcessorPlugin()
    ];
}

Remove or set the on enter event in the oms configuration to false

<event name="send-order-confirmation" manual="false" onEnter="false" command="OrderConfirmationBcc/SendOrderConfirmationWithBccPlugin"/>
<transition happy="true">
                <source>captured</source>
                <target>order-confirmation sent</target>
                <event>send-order-confirmation</event>
            </transition>

By default, it processes only orders in state captured and move / throws event send order confirmation. You can change those via config.

$config[\FondOfSpryker\Shared\OmsExternalProcessorPayone\OmsExternalProcessorPayoneConstants::EVENT_NAME] = 'send order confirmation';
$config[\FondOfSpryker\Shared\OmsExternalProcessorPayone\OmsExternalProcessorPayoneConstants::CAPTURED_STATE_NAME] = 'captured';
$config[\FondOfSpryker\Shared\OmsExternalProcessorPayone\OmsExternalProcessorPayoneConstants::MAX_AGE_IN_DAYS] = 7;

Usage

Run 'vendor/bin/console oms:external:process -r PayoneCaptureCheckExternalProcessorPlugin' or create job

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-10-12