forked from kidgrow-microservices-platform

zhaoxiaohao
2020-11-17 00788a1299d764b48e57fd457a2656f0bf3474b0
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
package com.kidgrow.oprationcenter.weixin;
 
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
 
@Component
@ConfigurationProperties("pay.wxpay")
@Data
public class WeiXinOfficPayProperties  {
    /**
     * appID
     */
    private String appID;
 
    /**
     * 商户号
     */
    private String mchID;
 
    /**
     * API 密钥
     */
    private String key;
 
    /**
     * API证书绝对路径 (本项目放在了 resources/cert/wxpay/apiclient_cert.p12")
     */
//    private String certPath;
 
    /**
     * HTTP(S) 连接超时时间,单位毫秒
     */
    private int httpConnectTimeoutMs = 8000;
 
    /**
     * HTTP(S) 读数据超时时间,单位毫秒
     */
    private int httpReadTimeoutMs = 10000;
 
    /**
     * 微信支付异步通知地址
     */
    private String payNotifyUrl;
 
    /**
     * 微信退款异步通知地址
     */
    private String refundNotifyUrl;
 
}