Administrator
2024-05-29 62a7f3228c94db41bf57858a6549eb0db033bf1e
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
package com.dy.pipIrrSell.wechatpay;
 
/**
 * @author ZhuBaoMin
 * @date 2024-03-06 13:49
 * @LastEditTime 2024-03-06 13:49
 * @Description
 */
public class PayInfo {
    /**
     * 小程序登录API
     */
    public static String loginUrl = "https://api.weixin.qq.com/sns/jscode2session";
 
    /**
     * 检验登录态
     */
    public static String checkSessionUrl = "https://api.weixin.qq.com/wxa/checksession";
 
    /**
     * 重置登录态
     */
    public static String resetUserSessionKeyUrl = "https://api.weixin.qq.com/wxa/resetusersessionkey";
 
    /**
     * 获取接口调用凭据
     */
    public static String tokenUrl = "https://api.weixin.qq.com/cgi-bin/token";
 
    /**
     * 统一下单API
     */
    //public static String orderUrl = "https://api.mch.weixin.qq.com/pay/unifiedorder";
    public static String orderUrl = "https://api.mch.weixin.qq.com/v3/pay/transactions/jsapi";
 
    /**
     * 平台证书下载URL
     */
    public static String certificates = "https://api.mch.weixin.qq.com/v3/certificates";
 
    /*
     * 支付结果通知API
     */
    //public static String notifyUrl = "https://www.muxiaobao.com/api/Payment/OrderNotify";
    public static String notifyUrl = "https://44978f7456.imdo.co/webchat/payment/orderNotify";
 
    /*
     * 查询订单API
     */
    public static String queryUrl = "https://api.mch.weixin.qq.com/pay/orderquery";
 
    /**
     * 申请退款API
     */
    public static String refundUrl = "https://api.mch.weixin.qq.com/v3/refund/domestic/refunds";
 
    /*
     * 退款通知API
     */
    public static String refundNotifyUrl = "https://www.muxiaobao.com/wxpay/pay.action";
 
    /*
     * 退款查询API
     */
    public static String refundQueryUrl = "https://api.mch.weixin.qq.com/pay/refundquery";
 
    /*
     * 小程序唯一标识
     */
    public static String appid = "wxbc2b6a00dd904ead";
 
    /*
     * 小程序的 app secret
     */
    public static String secret = "796ffe3e9921f756db0499e80d6ed0cd";
 
    /*
     * 小程序的授权类型,登录凭证校验使用
     */
    public static String grantType = "authorization_code";
 
    /*
     * 商户号(微信支付分配的商户号)
     */
    public static String mchid = "1640721520";
 
    /*
     * 商户平台设置的密钥key
     */
    public static String key = "DaYuJieShuiYanJiuYuan20230412ABC";
 
    /**
     * 商户API证书序列号
     */
    public static String serial_no = "52D65AA66405C738670377F467178F4C950E1606";
 
    /*
     * 终端IP,调用微信支付API的机器IP
     */
    public static String addrIp = "47.104.211.89";
 
    /*
     * 随机字符串,长度要求在32位以内
     */
    //public static String nonceStr = PayHelper.generateRandomString();
 
    /*
     * 时间戳 从1970年1月1日00:00:00至今的秒数,即当前的时间
     */
    //public static Long timeStamp = PayHelper.getTimeStamp();
 
    /*
     * 交易类型,小程序取值JSAPI
     */
    public static String tradeType = "JSAPI";
 
    /*
     * 签名类型
     */
    //public static String signType = "MD5";
    public static String signType = "RSA";
 
    /*
     * 商品描述 商品简单描述,该字段请按照规范传递
     */
    //public static String body = "大禹研究院-水费";
    public static String description = "大禹研究院-水费";
 
    /*
     * 附加数据,在查询API和支付通知中原样返回,可作为自定义参数使用
     */
    public static String attach = "天津";
 
    /*
     * 签名,参与签名参数:appid、attach、mch_id、nonce_str、body、out_trade_no、total_fee、spbill_create_ip、notify_url、trade_type、openid
     */
    public String sign = "";
 
    /**
     * HTTP头认证类型
     */
    public static String schema = "WECHATPAY2-SHA256-RSA2048";
 
    /**
     * 私钥文件路径
     */
    public static String privateCertFileName = "C:\\webchat\\apiclient_key.pem";
 
    public static String publicCertFileName = "C:\\webchat\\wxp_cert.pem";
 
    /*
     * 微信订单号,优先使用
     */
    public static String transactionid = "";
 
    /*
     * 商户系统内部订单号
     */
    public static String out_trade_no = "";
 
    /*
     * 商户退款单号
     */
    public static String out_refund_no = "";
 
    /*
     * 退款金额
     */
    public static Float refundfee;
 
    /*
     * 订单金额
     */
    public static Float totalfee;
}