payment.php
1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php
//支付配置
return [
'alipay' => [
// 即时到账方式
'payment_type' => 1,
// 传输协议
'transport' => 'http',
// 编码方式
'input_charset' => 'utf-8',
// 签名方法
'sign_type' => 'MD5',
// 证书路径
'cacert' => './cacert.pem',
//验签公钥地址
'public_key_path' => './alipay_public_key.pem',
'private_key_path' => '',
// 支付完成异步通知调用地址
'notify_url' => '/order/callback_alipay/notify',
// 支付完成同步返回地址
'return_url' => '/order/callback_alipay/return',
// 支付宝商家 ID
'partner' => '2088xxxxxxxx',
// // 支付宝商家 KEY
'key' => 'xxxxxxxxxxxx',
// // 支付宝商家注册邮箱
'seller_email' => 'email@domain.com'
],
'wechat' => [
//微信支付配置数组
// 公众账号appid
'appid' => '',
// 商户号
'mch_id' => '',
// 加密key
'apikey' => '',
// 公众号appsecret
'appsecret' => '',
// 证书路径(apiclient_cert.pem)
'sslcertPath' => '',
// 密钥路径(apiclient_key.pem)
'sslkeyPath' => '',
// 支付完成异步通知调用地址
'notify_url' => ''
]
];