作者 杨育虎

支付

... ... @@ -2,64 +2,64 @@
return [
[
'name' => 'wechat',
'title' => '微信',
'type' => 'array',
'name' => 'wechat',
'title' => '微信',
'type' => 'array',
'content' => [],
'value' => [
'appid' => '',
'app_id' => '',
'app_secret' => '',
'miniapp_id' => '',
'mode' => 'normal',
'sub_appid' => '',
'sub_app_id' => '',
'value' => [
'appid' => '',
'app_id' => 'wx3b1935a9955e6e56',
'app_secret' => '32e1840b3526ff6534bb7f454d7f6fdc',
'miniapp_id' => '',
'mch_id' => '1605103818',
'key' => 'NW0l0Fh36rTSlsx0tkMegTSXNK5vF4n2',
'mode' => 'normal',
'sub_mch_id' => '',
'sub_appid' => '',
'sub_app_id' => '',
'sub_miniapp_id' => '',
'mch_id' => '',
'sub_mch_id' => '',
'key' => '',
'notify_url' => '/addons/epay/api/notifyx/type/wechat',
'cert_client' => '/addons/epay/certs/apiclient_cert.pem',
'cert_key' => '/addons/epay/certs/apiclient_key.pem',
'log' => '1',
'notify_url' => '/addons/epay/api/notifyx/type/wechat',
'cert_client' => '/addons/epay/certs/apiclient_cert.pem',
'cert_key' => '/addons/epay/certs/apiclient_key.pem',
'log' => '1',
],
'rule' => '',
'msg' => '',
'tip' => '微信参数配置',
'ok' => '',
'extend' => '',
'rule' => '',
'msg' => '',
'tip' => '微信参数配置',
'ok' => '',
'extend' => '',
],
[
'name' => 'alipay',
'title' => '支付宝',
'type' => 'array',
'name' => 'alipay',
'title' => '支付宝',
'type' => 'array',
'content' => [],
'value' => [
'app_id' => '',
'mode' => 'normal',
'notify_url' => '/addons/epay/api/notifyx/type/alipay',
'return_url' => '/addons/epay/api/returnx/type/alipay',
'value' => [
'app_id' => '',
'mode' => 'normal',
'notify_url' => '/addons/epay/api/notifyx/type/alipay',
'return_url' => '/addons/epay/api/returnx/type/alipay',
'ali_public_key' => '',
'private_key' => '',
'log' => '1',
'scanpay' => '1',
'private_key' => '',
'log' => '1',
'scanpay' => '1',
],
'rule' => 'required',
'msg' => '',
'tip' => '支付宝参数配置',
'ok' => '',
'extend' => '',
'rule' => 'required',
'msg' => '',
'tip' => '支付宝参数配置',
'ok' => '',
'extend' => '',
],
[
'name' => '__tips__',
'title' => '温馨提示',
'type' => 'array',
'name' => '__tips__',
'title' => '温馨提示',
'type' => 'array',
'content' => [],
'value' => '请注意微信支付证书路径位于/addons/epay/certs目录下,请替换成你自己的证书<br>appid:APP的appid<br>app_id:公众号的appid<br>app_secret:公众号的secret<br>miniapp_id:小程序ID<br>mch_id:微信商户ID<br>key:微信商户支付的密钥',
'rule' => '',
'msg' => '',
'tip' => '微信参数配置',
'ok' => '',
'extend' => '',
'value' => '请注意微信支付证书路径位于/addons/epay/certs目录下,请替换成你自己的证书<br>appid:APP的appid<br>app_id:公众号的appid<br>app_secret:公众号的secret<br>miniapp_id:小程序ID<br>mch_id:微信商户ID<br>key:微信商户支付的密钥',
'rule' => '',
'msg' => '',
'tip' => '微信参数配置',
'ok' => '',
'extend' => '',
],
];
... ...
... ... @@ -6,10 +6,10 @@ use app\common\controller\Api;
use addons\third\library\Wechat;
use think\Db;
//define('ak', 'wx76ddffb14a62a7c9');
//define('sk', 'fbeab9821d11b6c03402ee419f93618f');
define('ak', 'wx3b1935a9955e6e56');
define('sk', '32e1840b3526ff6534bb7f454d7f6fdc');
define('ak', 'wx76ddffb14a62a7c9');
define('sk', 'fbeab9821d11b6c03402ee419f93618f');
//define('ak', 'wx3b1935a9955e6e56');
//define('sk', '32e1840b3526ff6534bb7f454d7f6fdc');
/**
* 用户接口
... ...
... ... @@ -10,10 +10,10 @@ return [
/**
* 账号基本信息,请从微信公众平台/开放平台获取
*/
// 'app_id' => 'wx76ddffb14a62a7c9', // AppID
'app_id' => 'wx3b1935a9955e6e56', // AppID
// 'secret' => 'fbeab9821d11b6c03402ee419f93618f', // AppSecret
'secret' => '32e1840b3526ff6534bb7f454d7f6fdc', // AppSecret
'app_id' => 'wx76ddffb14a62a7c9', // AppID
// 'app_id' => 'wx3b1935a9955e6e56', // AppID
'secret' => 'fbeab9821d11b6c03402ee419f93618f', // AppSecret
// 'secret' => '32e1840b3526ff6534bb7f454d7f6fdc', // AppSecret
'token' => 'your-token', // Token
'aes_key' => '', // EncodingAESKey,安全模式与兼容模式下请一定要填写!!!
... ...