# vk-pay-config
# 统一支付配置表
该表为插件支付专用表,主要存放商户的支付配置
# 字段
字段名称 | 字段类型 | 必填 | 默认值 | 说明 |
---|---|---|---|---|
_id | string | 是 | 商户支付pid | |
alipay | object | 支付宝支付配置 | ||
wxpay | object | 微信支付配置 |
# 完整数据格式示例
{
"_id":"001",
"wxpay": {
"mp-weixin": {
"appId": "",
"secret": "",
"mchId": "",
"key": "",
"pfx": ""
},
"app-plus": {
"appId": "",
"secret": "",
"mchId": "",
"key": "",
"pfx": ""
},
"h5": {
"appId": "",
"secret": "",
"mchId": "",
"key": "",
"pfx": ""
},
"h5-weixin": {
"appId": "wx2ebf03d174875bed",
"secret": "84119e740cc4e98b84e088c5051d05bb",
"mchId": "",
"key": "",
"pfx": ""
},
"mweb": {
"appId": "",
"secret": "",
"mchId": "",
"key": "",
"pfx": "",
"sceneInfo": {
"h5_info": {
"type": "Wap",
"wap_url": "https://www.xxxxxx.com",
"wap_name": "网站名称",
}
}
}
},
"alipay": {
"mp-alipay": {
"mchId": "",
"appId": "",
"privateKey": "",
"alipayPublicCertContent": "",
"alipayRootCertContent": "",
"appCertContent": "",
"sandbox": false
},
"app-plus": {
"mchId": "",
"appId": "",
"privateKey": "",
"alipayPublicCertContent": "",
"alipayRootCertContent": "",
"appCertContent": "",
"sandbox": false
},
"h5": {
"appId": "",
"mchId": "",
"privateKey": "",
"alipayPublicCertContent": "",
"alipayRootCertContent": "",
"appCertContent": "",
"sandbox": false
},
"transfer": {
"mchId": "",
"appId": "",
"privateKey": "",
"appCertSn": "",
"alipayRootCertSn": "",
"sandbox": false
}
}
}
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# 特别说明
- 微信的
pfx
的值是wxpay.p12
证书文件转base64
后的值 - 支付宝的
alipayPublicCertContent
的值是alipayCertPublicKey_RSA2.crt
证书文件内的字符串的值(变成一行,且换行处需要加\n) - 支付宝的
alipayRootCertContent
的值是alipayRootCert.crt
证书文件内的字符串的值(变成一行,且换行处需要加\n) - 支付宝的
appCertPublicKeyContent
的值是appCertPublicKey.crt
证书文件内的字符串的值(变成一行,且换行处需要加\n)