setono/sylius-quickpay-refund-bridge-plugin

通过QuickPay为Sylius和退款插件(https://github.com/Sylius/RefundPlugin)实现全额和部分退款

v0.1.2 2022-04-25 10:58 UTC

This package is auto-updated.

Last update: 2024-09-05 03:24:38 UTC


README

Latest Version Latest Unstable Version Software License Build Status Code Coverage

安装

  1. composer require setono/sylius-quickpay-refund-bridge-plugin:dev-master

  2. 在Sylius退款插件的路线之后导入插件的路线

setono_sylius_quickpay_refund_bridge:
    resource: "@SetonoSyliusQuickpayRefundBridgePlugin/Resources/config/routes.yaml"

开发和测试

  1. 运行 composer create-project setono/sylius-quickpay-refund-bridge-plugin:dev-master setono-sylius-quickpay-refund

  2. 从插件根目录,运行以下命令

    (cd tests/Application && yarn install)
    (cd tests/Application && yarn build)
    (cd tests/Application && bin/console assets:install)
    
    (cd tests/Application && bin/console doctrine:database:create)
    (cd tests/Application && bin/console doctrine:schema:create)
    
    (cd tests/Application && bin/console sylius:fixtures:load -n)
  3. 启动本地PHP服务器(见 文档

    (cd tests/Application && symfony serve)

为了能够设置插件的数据库,请记住在 tests/Application/.envtests/Application/.env.test 中配置您的数据库凭证。