waaz/system-pay-plugin

适用于Sylius应用的系统支付支付插件。

安装数: 2,620

依赖者: 0

建议者: 0

安全性: 0

星标: 5

关注者: 2

分支: 4

开放问题: 0

类型:sylius-plugin

v1.0 2022-05-25 15:00 UTC

This package is auto-updated.

Last update: 2024-09-25 20:06:06 UTC


README

Waaz

概览

此插件使Sylius商店能够使用系统支付支付方式。

安装

$ composer require waaz/system-pay-plugin

将插件依赖项添加到您的AppKernel.php文件中

public function registerBundles()
{
    return array_merge(parent::registerBundles(), [
        ...

        new \Waaz\SystemPayPlugin\WaazSystemPayPlugin(),
    ]);
}

用法

转到您的管理面板中的支付方式。现在您应该能够为系统支付网关添加新的支付方式。

网关中的支付方式选项是可选的。根据Systempay文档

  • 如果列表中只包含一种类型的卡,则将直接显示此支付方式的表单填写页面,
  • 否则将显示支付方式选择页面,
  • 如果此参数为空(推荐)则将提供所有符合条件的支付方式(货币、技术约束等)。

测试

$ wget https://getcomposer.org.cn/composer.phar
$ php composer.phar install
$ yarn install
$ yarn run gulp
$ php bin/console sylius:install --env test
$ php bin/console server:start --env test
$ open https://:8000
$ bin/behat features/*
$ bin/phpspec run

贡献

有关我们的贡献流程,请参阅http://docs.sylius.org/en/latest/contributing/