vitepay / alipay
vitepay的alipay支付网关。
1.0.0
2020-08-27 11:02 UTC
Requires
- php: >=7.1.0
- moneyphp/money: ^3.3
- nesbot/carbon: ^2.28
- php-http/guzzle6-adapter: ^2.0
- php-http/message: ^1.9
- symfony/options-resolver: ^3.3
- topthink/framework: ^6.0
- vitepay/core: ^1.0
This package is auto-updated.
Last update: 2025-03-05 23:36:15 UTC
README
vitepay的支付宝支付网关。
安装
composer require vitepay/alipay
配置
修改配置config/vitepay_alipay.php
return [
'sandbox' => true,//沙箱模式
'type' => '',//默认为 \vitepay\alipay\BaseGateway
'credentials' => [
'app_id' => '',
'alipay_public_key' => '', //支付宝公钥
'app_private_key' => '',//应用私钥
],
"gateways" => [
"app" => [
'type' => 'app',//对应\vitepay\alipay\gateway\App
'sandbox' => true,
],
"scan" => [
'sandbox' => true,
'type' => 'scan',//对应\vitepay\alipay\gateway\Scan
],
"wap" => [
'sandbox' => true,
'type' => 'wap',//对应\vitepay\alipay\gateway\Wap
],
"web" => [
'sandbox' => true,
'type' => 'wap',//对应\vitepay\alipay\gateway\Web
],
],
];
使用
相关支付
License
The MIT License (MIT). Please see License File for more information.