sirumobile/payum-siru
最新稳定版本:0.1.0
Composer 安装命令:
composer require sirumobile/payum-siru
包简介
Payum extension for Siru Mobile payment gateway
README 文档
README
This library allows the use of Siru Mobile payments with Payum.
Requirements
- PHP 8.0+
- API credentials from Siru Mobile
Installation
composer require sirumobile/payum-siru
Configuration
You need your API credentials and integration details from Siru Mobile. See EXAMPLE for more complete example of the payment flow.
<?php use Payum\Core\GatewayFactoryInterface; use Siru\PayumSiru\PayumSiruGatewayFactory; use Payum\Core\PayumBuilder; use Payum\Core\Payum; /** @var Payum $payum */ $payum = (new PayumBuilder()) ->addDefaultStorages() ->addGatewayFactory('siru_checkout', function(array $config, GatewayFactoryInterface $coreGatewayFactory) { return new PayumSiruGatewayFactory($config, $coreGatewayFactory); }) ->addGateway('siru_checkout', [ 'factory' => 'siru_checkout', # These are only example values. Replace these with values you received from Siru Mobile 'merchant_id' => 123, 'merchant_secret' => 'yoursecret', 'variant' => 'variant2', 'purchase_country' => 'FI', 'service_group' => 2, 'tax_class' => 3, ]) ->getPayum() ;
统计信息
- 总下载量: 8
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-11-16