Helius
2021-03-10 087cd794187727bf9a34fcef3027cd56f6dec436
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
package com.matrix.component.wechat.externalInterface.common;
 
/**
 *  User: rizenguo Date: 2014/10/29 Time: 14:40 这里放置各种配置数据
 */
public class WechatConfigure {
 
    //TODO 这里的配置全部移除到配置文件里面不要重复
    // 这个就是自己要保管好的私有Key了(切记只能放在自己的后台代码里,不能放在任何可能被看到源代码的客户端程序中)
    // 每次自己Post数据给API的时候都要用这个key来对所有字段进行签名,生成的签名会放在Sign这个字段,API收到Post数据的时候也会用同样的签名算法对Post过来的数据进行签名和验证
    // 收到API的返回的时候也要用这个key来对返回的数据算下签名,跟API的Sign数据进行比较,如果值不一致,有可能数据被第三方给篡改
 
    // 交易类型
    public static final String TRADE_TYPE_JSAPI = "JSAPI";
    public static final String TRADE_TYPE_NATIVE = "NATIVE";
    public static final String TRADE_TYPE_APP = "APP";
    public static final String SIGN_MD5 = "MD5";
    //域名
 
 
 
    // 受理模式下给子商户分配的子商户号
    public static String subMchID = "";
 
    // HTTPS证书的本地路径
    public static String certLocalPath = "/home/cert/apiclient_cert.p12";
 
 
 
    // 是否使用异步线程的方式来上报API测速,默认为异步模式
    public static boolean useThreadToDoReport = true;
 
    // 机器IP
    public static String ip = "";
 
    // 以下是几个API的路径:
    public static String JS_PAY_API = "https://api.mch.weixin.qq.com/pay/micropay";
 
    public static String UNIFIEDORDER = "https://api.mch.weixin.qq.com/pay/unifiedorder";
 
    // 1)被扫支付API
    public static String PAY_API = "https://api.mch.weixin.qq.com/pay/micropay";
 
    // 2)被扫支付查询API
    public static String PAY_QUERY_API = "https://api.mch.weixin.qq.com/pay/orderquery";
 
    // 3)退款API
    public static String REFUND_API = "https://api.mch.weixin.qq.com/secapi/pay/refund";
 
    // 4)退款查询API
    public static String REFUND_QUERY_API = "https://api.mch.weixin.qq.com/pay/refundquery";
 
    // 5)撤销API
    public static String REVERSE_API = "https://api.mch.weixin.qq.com/secapi/pay/reverse";
 
    // 6)下载对账单API
    public static String DOWNLOAD_BILL_API = "https://api.mch.weixin.qq.com/pay/downloadbill";
 
    // 7) 统计上报API
    public static String REPORT_API = "https://api.mch.weixin.qq.com/payitil/report";
    // 8) 企业付款API
    public static String COM_PAY_API="https://api.mch.weixin.qq.com/mmpaymkttransfers/promotion/transfers";
    // 成功标识
    public static String SUCCESS = "SUCCESS";
    public static String FAIL = "FAIL";
    
    /**
     * 发送http请求类
     */
    public static String HttpsRequestClassName = "com.matrix.component.wechat.externalInterface.common.HttpsRequest";
    
    /**
     * 发送  SSL请求,企业付款,退款用
     */
    public static String HttpsRequestClassName2 = "com.matrix.component.wechat.externalInterface.common.HttpsRequest2";
    /**
     * 企业支付IP
     */
    public static String PAY_COM_IP = "47.111.134.136";
 
    /**
     * 获取RSA加密公钥
     */
    public static String PUBLIC_KEY_GET_API = "https://fraud.mch.weixin.qq.com/risk/getpublickey";
    
    
}