swarmsoft / sylius-btepos-plugin
Sylius 的 BTePOS 插件。
v1.0.1
2020-07-22 06:40 UTC
Requires
- php: ^7.3
- mobiledetect/mobiledetectlib: ^2.8
Requires (Dev)
- behat/behat: ^3.4
- behat/mink: ^1.7@dev
- behat/mink-browserkit-driver: ^1.3
- behat/mink-extension: ^2.2
- behat/mink-selenium2-driver: ^1.3
- friends-of-behat/page-object-extension: ^0.3
- friends-of-behat/suite-settings-extension: ^1.0
- friends-of-behat/symfony-extension: ^2.0
- friends-of-behat/variadic-extension: ^1.1
- lakion/mink-debug-extension: ^1.2.3
- phpspec/phpspec: ^6.0
- phpstan/phpstan-doctrine: ^0.11
- phpstan/phpstan-shim: ^0.11
- phpstan/phpstan-webmozart-assert: ^0.11
- phpunit/phpunit: ^8.0
- sensiolabs/security-checker: ^5.0
- sylius-labs/coding-standard: ^3.0
- symfony/browser-kit: ^3.4|^4.3
- symfony/debug-bundle: ^3.4|^4.3
- symfony/dotenv: ^4.3
- symfony/intl: ^3.4|^4.3
- symfony/phpunit-bridge: ^5.1
- symfony/web-profiler-bundle: ^3.4|^4.3
- symfony/web-server-bundle: ^3.4|^4.3
This package is auto-updated.
Last update: 2024-09-17 22:44:50 UTC
README
此插件将 BTePOS 支付与基于 Sylius 的应用程序集成。安装后,您应该能够为 BTePOS 网关创建一种支付方式,并在您的网店中启用其支付功能。
安装
$ composer require swarmsoft/sylius-btepos-plugin
将插件依赖项添加到您的 config/bundles.php 文件中
return [
Swarmsoft\SyliusBTePOSPlugin\SwarmsoftSyliusBTePOSPlugin::class => ['all' => true],
]
在您的 Sylius 店铺中创建新的支付方式时,从创建下拉菜单中选择 BTePOS 支付,然后填写配置表单。选择 1-阶段或 2-阶段,填写基础 URL(沙盒或生产 URL),用户名、密码,最后填写 0 为分期付款。
如果您已与 BTePOS 约定启用 STARCard 的分期付款,请填写约定的分期付款之一(3、6、9 等)。此支付方式将仅与 STARCard 信用卡一起使用。
测试
$ wget http://getcomposer.org/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
贡献
在我们的贡献流程上了解更多信息。