vitepay / wechat
vitepay的wechat支付网关。
1.0.1
2020-10-31 03:13 UTC
Requires
- php: >=7.1.0
- 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:46:21 UTC
README
vitepay的微信支付网关。
安装
composer require vitepay/wechat
配置
修改配置config/vitepay_wechat.php
return [
'sandbox' => true,//沙箱模式
'type' => '',
'credentials' => [
'key' => '',
'app_id' => '',
'mch_id' => '',
'cert' => '',//证书
'ssl_key' => '',//证书秘钥
],
"gateways" => [
"js" => [
'type' => 'js',
],
"app" => [
'type' => 'app',
'sandbox' => true,
'credentials' => [
'app_id' => '',//需要填入APP的app_id
],
],
"wap" => [
'type' => 'wap',
'sandbox' => true,
],
"scan" => [
'sandbox' => true,
'type' => 'scan',
],
"mp" => [
'type' => 'js',
'sandbox' => true,
'credentials' => [
'app_id' => '',//需要填入小程序的app_id
],
],
],
];
使用
相关支付
License
The MIT License (MIT). Please see License File for more information.