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;
|
|
}
|