|
@@ -0,0 +1,277 @@
|
|
|
+package com.szwl.model.utils;
|
|
|
+
|
|
|
+import java.util.HashMap;
|
|
|
+import java.util.Map;
|
|
|
+
|
|
|
+/**
|
|
|
+ * 汇聚支付 常量
|
|
|
+ */
|
|
|
+public class AirwallexConstant {
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 商户密钥
|
|
|
+ */
|
|
|
+ public final static String apiKey = "7eb2be388987ae27ae80c904bed93f89ddd08437debb2692c364da07deba1502a279e388d0c3e732f16ebbb8787d1a14";
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ */
|
|
|
+ public final static String clientid = "IBi-pVO4SSGzXIDHRYfVOA";
|
|
|
+
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ */
|
|
|
+ public final static String url = "https://api-demo.airwallex.com";
|
|
|
+ /**
|
|
|
+ * 商户密钥 : MD5
|
|
|
+ */
|
|
|
+ public final static String key = "8cb1d25eba7d4f3caecf1f0569150e04";
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 汇聚公钥
|
|
|
+ */
|
|
|
+ public final static String publickey = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCLgawJlQ3O8/O9YmJt6mi0pzh9JiDGp2G6IW3p8NTZXE5tIBZRbQAkHnr/zaLh0kDHMtIGAcGUtgXilRxXeUIuc0/j561YLsxAORma2XerniRCLWrXS4yM8F1/813Rv21JoNFkDZWHdTgEpKTH8GaGYOHiEytIN0LvPzEvNsimWQIDAQAB";
|
|
|
+
|
|
|
+ /**
|
|
|
+ * >>>>>>>>>>>>> 币种 >>>>>>>>>>>>>
|
|
|
+ *
|
|
|
+ */
|
|
|
+ /**
|
|
|
+ * 人民币
|
|
|
+ */
|
|
|
+ public final static String Cur_RMB = "1";
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 支付成功回调
|
|
|
+ */
|
|
|
+// public final static String Notify_Url = "http://pay.sunzee.com.cn:49013/tOrder/notify";
|
|
|
+ public final static String Notify_Url = "https://sz.sunzee.com.cn/PAY-SERVER/tOrder/notify";
|
|
|
+// public final static String Notify_Url = "http://szwltest.sunzee.com.cn:49002/PAY-SERVER/tOrder/notify";
|
|
|
+// public final static String Notify_Url = "http://slb.sunzee.com.cn/api/order/notify.htm";
|
|
|
+
|
|
|
+ public final static String mg280Notify_Url = "https://sz.sunzee.com.cn/PAY-SERVER/tOrder/mg280Notify";
|
|
|
+// public final static String mg280Notify_Url = "http://slb.sunzee.com.cn/api/order/mg280Notify.htm";
|
|
|
+
|
|
|
+ public final static String Notify_Url_PromoCode = "https://sz.sunzee.com.cn/PAY-SERVER/tOrder/promoCodeNotify";
|
|
|
+// public final static String Notify_Url_PromoCode = "http://slb.sunzee.com.cn/api/order/promoCodeNotify.htm";
|
|
|
+
|
|
|
+ public final static String Jiesuan_Url = "https://sz.sunzee.com.cn/PAY-SERVER/api/order/jiesuan";
|
|
|
+// public final static String Jiesuan_Url = "http://slb.sunzee.com.cn/api/order/jiesuan.htm";
|
|
|
+
|
|
|
+ public final static Map<String,String> Result_status = new HashMap<>();
|
|
|
+ /**
|
|
|
+ * 退款成功回调
|
|
|
+ */
|
|
|
+ public final static String Notify_Refund_Url = "http://app.sunzee.com.cn/api/order/notifyRefund";
|
|
|
+ public final static String Admin_Notify_Refund_Url = "http://app.sunzee.com.cn/api/order/adminNotifyRefund";
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 支付回调支付状态代码
|
|
|
+ */
|
|
|
+ public final static String r6_Status_100 = "100";
|
|
|
+ public final static String r6_Status_101 = "101";
|
|
|
+
|
|
|
+ /**
|
|
|
+ * >>>>>>>>>>>>> 签名类型 >>>>>>>>>>>>>
|
|
|
+ * 1=MD5,2=RSA
|
|
|
+ */
|
|
|
+ public final static String sign_type_MD5 = "1";
|
|
|
+ public final static String sign_type_RSA = "2";
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * >>>>>>>>>>>>> 分账方商户类型 >>>>>>>>>>>>>
|
|
|
+ * 10:个人,11:个体工商户,12:企业
|
|
|
+ */
|
|
|
+ public final static Integer alt_merchant_type1 = 10;
|
|
|
+ public final static Integer alt_merchant_type2 = 11;
|
|
|
+ public final static Integer alt_merchant_type3 = 12;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * >>>>>>>>>>>>> 分账方结算方式 >>>>>>>>>>>>>
|
|
|
+ * 1 由汇聚自动结算
|
|
|
+ * 2 由商户平台手工结算(结算接口)
|
|
|
+ */
|
|
|
+ public final static Integer sett_mode1 = 1;
|
|
|
+ public final static Integer sett_mode2 = 2;
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * >>>>>>>>>>>>> 结算周期类型 >>>>>>>>>>>>>
|
|
|
+ * 1 工作日,2 自然日,3 月结日
|
|
|
+ */
|
|
|
+ public final static Integer sett_date_type1 = 1;
|
|
|
+ public final static Integer sett_date_type2 = 2;
|
|
|
+ public final static Integer sett_date_type3 = 3;
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * >>>>>>>>>>>>> 账户类型 >>>>>>>>>>>>>
|
|
|
+ * 1 借记卡,4 对公账户
|
|
|
+ */
|
|
|
+ public final static Integer bank_account_type1 = 1;
|
|
|
+ public final static Integer bank_account_type4 = 4;
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ *
|
|
|
+ * >>>>>>>>>>>>> 响应码 >>>>>>>>>>>>>
|
|
|
+ *
|
|
|
+ *
|
|
|
+ */
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 受理响应码
|
|
|
+ */
|
|
|
+ public static final Map<String, String> resp_code = new HashMap<>();
|
|
|
+ public static final String resp_code1 = "A1000";
|
|
|
+ public static final String resp_code2 = "A2000";
|
|
|
+ public static final String resp_code3 = "A3000";
|
|
|
+
|
|
|
+ static {
|
|
|
+ resp_code.put(resp_code1, "受理成功");
|
|
|
+ resp_code.put(resp_code2, "受理失败,具体失败原因查看业务响应码");
|
|
|
+ resp_code.put(resp_code3, "受理未知(如:接口调用超时)");
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 商户状态
|
|
|
+ */
|
|
|
+ public static final Map<String, String> order_status = new HashMap<>();
|
|
|
+ public static final String order_status1 = "P0001";
|
|
|
+ public static final String order_status2 = "P1000";
|
|
|
+ public static final String order_status3 = "P2000";
|
|
|
+ public static final String order_status4 = "P3000";
|
|
|
+ public static final String order_status5 = "P3001";
|
|
|
+ public static final String order_status6 = "P3002";
|
|
|
+ public static final String order_status7 = "P3003";
|
|
|
+
|
|
|
+ static {
|
|
|
+ order_status.put(order_status1, "待处理中(受理中)");
|
|
|
+ order_status.put(order_status2, "交易成功");
|
|
|
+ order_status.put(order_status3, "交易失败");
|
|
|
+ order_status.put(order_status4, "结果未知");
|
|
|
+ order_status.put(order_status5, "处理中");
|
|
|
+ order_status.put(order_status6, "激活");
|
|
|
+ order_status.put(order_status7, "冻结");
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 业务响应码
|
|
|
+ */
|
|
|
+ public static final Map<String, String> biz_code = new HashMap<>();
|
|
|
+ public static final String biz_code1 = "B100000";
|
|
|
+ public static final String biz_code2 = "B100001";
|
|
|
+ public static final String biz_code3 = "B100002";
|
|
|
+ public static final String biz_code4 = "B100003";
|
|
|
+ public static final String biz_code5 = "B101001";
|
|
|
+ public static final String biz_code6 = "B101002";
|
|
|
+ public static final String biz_code7 = "B101003";
|
|
|
+ public static final String biz_code8 = "B101004";
|
|
|
+ public static final String biz_code9 = "B101005";
|
|
|
+ public static final String biz_code10 = "B103012";
|
|
|
+ public static final String biz_code11 = "B103013";
|
|
|
+ public static final String biz_code12 = "B102001";
|
|
|
+
|
|
|
+ static {
|
|
|
+ biz_code.put(biz_code1, "受理成功");
|
|
|
+ biz_code.put(biz_code2, "验签失败");
|
|
|
+ biz_code.put(biz_code3, "验参失败");
|
|
|
+ biz_code.put(biz_code4, "结果未知,SYS_ERROR");
|
|
|
+ biz_code.put(biz_code5, "登录名已存在");
|
|
|
+ biz_code.put(biz_code6, "找不到卡bin");
|
|
|
+ biz_code.put(biz_code7, "联行号有误");
|
|
|
+ biz_code.put(biz_code8, "查找不到银行信息");
|
|
|
+ biz_code.put(biz_code9, "不支持的结算卡类型");
|
|
|
+ biz_code.put(biz_code10, "担保账户不存在");
|
|
|
+ biz_code.put(biz_code11, "担保账户余额不足");
|
|
|
+ biz_code.put(biz_code12, "分账方不存在");
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * >>>>>>>>>>>>> 支付交易类型 >>>>>>>>>>>>>
|
|
|
+ */
|
|
|
+ public static final Map<String, String> frp_code = new HashMap<>();
|
|
|
+ public static final String frp_code_ALIPAY_NATIVE = "ALIPAY_NATIVE";
|
|
|
+ public static final String frp_code_ALIPAY_CARD = "ALIPAY_CARD";
|
|
|
+ public static final String frp_code_ALIPAY_APP = "ALIPAY_APP";
|
|
|
+ public static final String frp_code_ALIPAY_H5 = "ALIPAY_H5";
|
|
|
+ public static final String frp_code_ALIPAY_FWC = "ALIPAY_FWC";
|
|
|
+ public static final String frp_code_ALIPAY_SYT = "ALIPAY_SYT";
|
|
|
+ public static final String frp_code_WEIXIN_NATIVE = "WEIXIN_NATIVE";
|
|
|
+ public static final String frp_code_WEIXIN_CARD = "WEIXIN_CARD";
|
|
|
+ public static final String frp_code_WEIXIN_APP = "WEIXIN_APP";
|
|
|
+ public static final String frp_code_WEIXIN_APP2 = "WEIXIN_APP2";
|
|
|
+ public static final String frp_code_WEIXIN_H5 = "WEIXIN_H5";
|
|
|
+ public static final String frp_code_WEIXIN_GZH = "WEIXIN_GZH";
|
|
|
+ public static final String frp_code_WEIXIN_XCX = "WEIXIN_XCX";
|
|
|
+ public static final String frp_code_JD_NATIVE = "JD_NATIVE";
|
|
|
+ public static final String frp_code_JD_CARD = "JD_CARD";
|
|
|
+ public static final String frp_code_JD_APP = "JD_APP";
|
|
|
+ public static final String frp_code_JD_H5 = "JD_H5";
|
|
|
+ public static final String frp_code_QQ_NATIVE = "QQ_NATIVE";
|
|
|
+ public static final String frp_code_QQ_CARD = "QQ_CARD";
|
|
|
+ public static final String frp_code_QQ_APP = "QQ_APP";
|
|
|
+ public static final String frp_code_QQ_H5 = "QQ_H5";
|
|
|
+ public static final String frp_code_QQ_GZH = "QQ_GZH";
|
|
|
+ public static final String frp_code_UNIONPAY_NATIVE = "UNIONPAY_NATIVE";
|
|
|
+ public static final String frp_code_UNIONPAY_CARD = "UNIONPAY_CARD";
|
|
|
+ public static final String frp_code_UNIONPAY_APP = "UNIONPAY_APP";
|
|
|
+ public static final String frp_code_UNIONPAY_H5 = "UNIONPAY_H5";
|
|
|
+ public static final String frp_code_BAIDU_NATIVE = "BAIDU_NATIVE";
|
|
|
+ public static final String frp_code_SUNING_NATIVE = "SUNING_NATIVE";
|
|
|
+
|
|
|
+
|
|
|
+ static {
|
|
|
+ biz_code.put(frp_code_ALIPAY_NATIVE, "支付宝扫码(主扫)");
|
|
|
+ biz_code.put(frp_code_ALIPAY_CARD, "支付宝刷卡(被扫)");
|
|
|
+ biz_code.put(frp_code_ALIPAY_APP, "支付宝APP 支付");
|
|
|
+ biz_code.put(frp_code_ALIPAY_H5, "支付宝H5");
|
|
|
+ biz_code.put(frp_code_ALIPAY_FWC, "支付宝服务窗");
|
|
|
+ biz_code.put(frp_code_ALIPAY_SYT, "支付宝收银台");
|
|
|
+ biz_code.put(frp_code_WEIXIN_NATIVE, "微信扫码(主扫)");
|
|
|
+ biz_code.put(frp_code_WEIXIN_CARD, "微信刷卡(被扫)");
|
|
|
+ biz_code.put(frp_code_WEIXIN_APP, "微信APP 支付");
|
|
|
+ biz_code.put(frp_code_WEIXIN_APP2, "微信APP2 支付");
|
|
|
+ biz_code.put(frp_code_WEIXIN_H5, "微信H5 支付");
|
|
|
+ biz_code.put(frp_code_WEIXIN_GZH, "微信公众号支付");
|
|
|
+ biz_code.put(frp_code_WEIXIN_XCX, "微信小程序支付");
|
|
|
+ biz_code.put(frp_code_JD_NATIVE, "京东扫码(主扫)");
|
|
|
+ biz_code.put(frp_code_JD_CARD, "京东刷卡(被扫)");
|
|
|
+ biz_code.put(frp_code_JD_APP, "京东APP 支付");
|
|
|
+ biz_code.put(frp_code_JD_H5, "京东H5 支付");
|
|
|
+ biz_code.put(frp_code_QQ_NATIVE, "QQ 扫码(主扫)");
|
|
|
+ biz_code.put(frp_code_QQ_CARD, "QQ 刷卡(被扫)");
|
|
|
+ biz_code.put(frp_code_QQ_APP, "QQ APP 支付");
|
|
|
+ biz_code.put(frp_code_QQ_H5, "QQH5 支付");
|
|
|
+ biz_code.put(frp_code_QQ_GZH, "QQ 公众号支付");
|
|
|
+ biz_code.put(frp_code_UNIONPAY_NATIVE, "银联扫码(主扫)");
|
|
|
+ biz_code.put(frp_code_UNIONPAY_CARD, "银联刷卡(被扫)");
|
|
|
+ biz_code.put(frp_code_UNIONPAY_APP, "银联APP 支付");
|
|
|
+ biz_code.put(frp_code_UNIONPAY_H5, "银联H5");
|
|
|
+ biz_code.put(frp_code_BAIDU_NATIVE, "百度扫码(主扫)");
|
|
|
+ biz_code.put(frp_code_SUNING_NATIVE, "苏宁扫码(主扫)");
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ *
|
|
|
+ * >>>>>>>>>>>>> 汇聚支付接口 >>>>>>>>>>>>>
|
|
|
+ *
|
|
|
+ *
|
|
|
+ */
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 版本
|
|
|
+ */
|
|
|
+ public static final String pay_version = "2.1";
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+}
|