telemetricsystems/sylius-tpay-plugin

This package is auto-updated.

Last update: 2024-09-16 11:58:15 UTC


README

该插件将 Tpay 波兰支付与基于 Sylius 的应用程序集成。安装后,您应该能够为 Tpay 通道创建支付方式,并在您的网店中启用其支付。

注意

Tpay 在多个国家运营支付服务提供商服务,品牌相同(例如,RO、PL、IN、AR、BR 等),但不幸的是,它们使用不同的平台,因此此插件不适用于罗马尼亚的 Tpay。

安装

$ composer require telemetricsystems/sylius-tpay-plugin "dev-master"

将插件依赖项添加到您的 config/bundles.php 文件中

return [
    Ts\SyliusTpayPlugin\TsSyliusTpayPlugin::class => ['all' => true],
]

定制

您可以使用 decorate 可用的服务,以及您可以使用 extend 可用的表单

运行以下命令以查看与此插件共享的 Symfony 服务

$ bin/console debug:container ts.sylius_tpay_plugin

测试

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

许可证

此插件的源代码完全免费,并按照 MIT 许可证条款发布。