sinumobile / payum-siru-bundle
Payum Siru Mobile网关包
0.1.0
2022-11-16 09:45 UTC
Requires
- php: ^8.0
- payum/payum-bundle: ^2.5
- sirumobile/payum-siru: ^0.1.0
- symfony/config: ^6.0
- symfony/dependency-injection: ^6.0
- symfony/http-kernel: ^6.0
Requires (Dev)
- php-http/guzzle6-adapter: ^2.0
- phpstan/phpstan: ^1.8
- phpunit/phpunit: ^9.5
This package is auto-updated.
Last update: 2024-09-16 13:31:22 UTC
README
使用Symfony包将Siru网关添加到Payum。
需求
- PHP 8.0+
- Symfony 6.0+
- 来自Siru的API凭证
安装
composer require sirumobile/payum-siru-bundle
你很可能已经安装了payum-bundle,如果没有,你还需要php-http/client-implementation适配器之一。例如
composer require symfony/http-client
配置
你需要从Siru Mobile获取你的API凭证和集成详细信息。
# config/packages/payum.yaml payum: gateways: siru_checkout: factory: siru_checkout # These are only example values. Replace these with values # that you received from Siru Mobile merchant_id: 123 merchant_secret: yoursecret variant: variant2 purchase_country: FI service_group: 2 tax_class: 3