-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathwxpay-gateway.conf.sample.json
More file actions
60 lines (60 loc) · 2.24 KB
/
wxpay-gateway.conf.sample.json
File metadata and controls
60 lines (60 loc) · 2.24 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
49
50
51
52
53
54
55
56
57
58
59
60
{
"listen-host": "",
"listen-port": 7085,
"worker-num": 5,
"timeout": 0,
"order-expire-minutes": 120,
"pay-log-file": "wxpay-gateway-log.txt",
"endpoints": {
"create-pay": "/wxpay/create-pay",
"create-refund": "/wxpay/create-refund",
"query-order": "/wxpay/query-order",
"close-order": "/wxpay/close-order",
"transfer": "/transfer",
"query-transfer": "/query-transfer",
"v3-transfer": "/v3/transfer",
"v3-query-transfer": "/v3/query-transfer",
"v3-query-transfer-detail": "/v3/query-transfer-detail",
"[memo]": "-- 以下包含transfer-biils的是商户转账相关接口 --",
"v3-transfer-bills": "/v3/transfer-bills",
"v3-cancel-transfer-bills": "/v3/cancel-transfer-bills",
"v3-query-transfer-bills": "/v3/query-transfer-bills",
"v3-verify-transfer-bills": "/v3/verify-transfer-bills/:payApp",
"realname-auth-root": "/realname/auth -- 实名认证根路径,会添加后缀 /:op op 可以是 {url|identity|getinfo}",
"verify-notify-pay": "/verify-notify-pay",
"verify-notify-refund": "/verify-notify-refund"
},
"merchants": [
{
"name": "mch-name",
"mch-id": "商户id",
"mch-api-key": "商户apiKey",
"mch-cert-pem-file": "./路径指向/apiclient_cert.pem",
"mch-key-pem-file": "./路径指向/apiclient_key.pem",
"mch-cert-serialno": "平台证书序列号, 用于实名认证getinfo",
"wxpay-v3-cert": "optional, only used for batch-transfer, APIv3平台证书[该证书5年有效期,平台证书模式逐渐弃用]",
"wxpay-v3-key": "APIv3密钥。[当wxpay-v3-cert为空时有效,表示使用微信支付公钥模式]",
"wxpay-pubkey-file": "微信支付公钥,[当wxpay-v3-cert为空时有效,表示使用微信支付公钥模式]",
"wxpay-pubkey-id": "微信支付公钥ID[当wxpay-v3-cert为空时有效,表示使用微信支付公钥模式]",
"receipt": false
},
{
"name": "mch-name-sandbox",
"mch-id": "商户id",
"mch-api-key": "商户apiKey",
"mch-cert-pem-file": "./路径指向/apiclient_cert.pem",
"mch-key-pem-file": "./路径/apiclient_key.pem",
"mch-cert-serialno": "证书序列号, 用于实名认证getinfo"
}
],
"apps": [
{
"name": "app-name",
"merchant": "mch-name"
},
{
"name": "app-name-dev",
"merchant": "mch-name-sandbox"
}
]
}