JoinpayConstant.java 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320
  1. package com.szwl.constant;
  2. import java.util.HashMap;
  3. import java.util.Map;
  4. /**
  5. * 汇聚支付 常量
  6. */
  7. public class JoinpayConstant {
  8. /**
  9. * 商户编码
  10. */
  11. public final static String mch_no = "888106600000003";
  12. /**
  13. * 商户密钥 : MD5
  14. */
  15. public final static String key = "8cb1d25eba7d4f3caecf1f0569150e04";
  16. /**
  17. * 汇聚公钥
  18. */
  19. public final static String publickey = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCLgawJlQ3O8/O9YmJt6mi0pzh9JiDGp2G6IW3p8NTZXE5tIBZRbQAkHnr/zaLh0kDHMtIGAcGUtgXilRxXeUIuc0/j561YLsxAORma2XerniRCLWrXS4yM8F1/813Rv21JoNFkDZWHdTgEpKTH8GaGYOHiEytIN0LvPzEvNsimWQIDAQAB";
  20. /**
  21. * >>>>>>>>>>>>> 币种 >>>>>>>>>>>>>
  22. *
  23. */
  24. /**
  25. * 人民币
  26. */
  27. public final static String Cur_RMB = "1";
  28. /**
  29. * 支付成功回调
  30. */
  31. public final static String Notify_Url = "http://pay.sunzee.com.cn:49013/tOrder/notify.htm";
  32. // public final static String Notify_Url = "http://slb.sunzee.com.cn/api/order/notify.htm";
  33. public final static String mg280Notify_Url = "http://pay.sunzee.com.cn:49013/tOrder/mg280Notify.htm";
  34. // public final static String mg280Notify_Url = "http://slb.sunzee.com.cn/api/order/mg280Notify.htm";
  35. public final static String Notify_Url_PromoCode = "https://sz.sunzee.com.cn/PAY-SERVER/tOrder/promoCodeNotify";
  36. // public final static String Notify_Url_PromoCode = "http://slb.sunzee.com.cn/api/order/promoCodeNotify.htm";
  37. public final static String Jiesuan_Url = "https://sz.sunzee.com.cn/SZWL-SERVER/callback/withdrawJoinPay";
  38. // public final static String Jiesuan_Url = "http://slb.sunzee.com.cn/api/order/jiesuan.htm";
  39. public final static Map<String,String> Result_status = new HashMap<>();
  40. /**
  41. * 退款成功回调
  42. */
  43. public final static String Notify_Refund_Url = "https://sz.sunzee.com.cn/PAY-SERVER/tOrder/notifyRefund";
  44. // public final static String Notify_Refund_Url = "http://szwltest.sunzee.com.cn:49002/PAY-SERVER/tOrder/notifyRefund";
  45. public final static String Admin_Notify_Refund_Url = "http://app.sunzee.com.cn/api/order/adminNotifyRefund.htm";
  46. /**
  47. * 旧版退款成功回调
  48. */
  49. public final static String OLD_Notify_Refund_Url = "https://sz.sunzee.com.cn/PAY-SERVER/tOrder/oldNotifyRefund";
  50. // public final static String OLD_Notify_Refund_Url = "http://szwltest.sunzee.com.cn:49002/PAY-SERVER/tOrder/oldNotifyRefund";
  51. /**
  52. * 入网回调接口
  53. */
  54. public final static String MERCHANT_URL = "https://sz.sunzee.com.cn/SZWL-SERVER/callback/joinPayMerchant";
  55. /**
  56. * 支付回调支付状态代码
  57. */
  58. public final static String r6_Status_100 = "100";
  59. public final static String r6_Status_101 = "101";
  60. /**
  61. * >>>>>>>>>>>>> 签名类型 >>>>>>>>>>>>>
  62. * 1=MD5,2=RSA
  63. */
  64. public final static String sign_type_MD5 = "1";
  65. public final static String sign_type_RSA = "2";
  66. /**
  67. * >>>>>>>>>>>>> 分账方商户类型 >>>>>>>>>>>>>
  68. * 10:个人,11:个体工商户,12:企业
  69. */
  70. public final static Integer alt_merchant_type1 = 10;
  71. public final static Integer alt_merchant_type2 = 11;
  72. public final static Integer alt_merchant_type3 = 12;
  73. public final static Integer ALT_MERCHANT_TYPE_PERSON = 10;
  74. public final static Integer ALT_MERCHANT_TYPE_ENTERPRISE= 12;
  75. /**
  76. * >>>>>>>>>>>>> 分账方结算方式 >>>>>>>>>>>>>
  77. * 1 由汇聚自动结算
  78. * 2 由商户平台手工结算(结算接口)
  79. */
  80. public final static Integer sett_mode1 = 1;
  81. public final static Integer sett_mode2 = 2;
  82. public final static Integer SETT_MODE_ONE = 1;
  83. public final static Integer SETT_MODE_TWO = 2;
  84. /**
  85. * >>>>>>>>>>>>> 结算周期类型 >>>>>>>>>>>>>
  86. * 1 工作日,2 自然日,3 月结日
  87. */
  88. public final static Integer sett_date_type1 = 1;
  89. public final static Integer sett_date_type2 = 2;
  90. public final static Integer sett_date_type3 = 3;
  91. public final static Integer SETT_DATE_WORK = 1;
  92. public final static Integer SETT_DATE_DAY = 2;
  93. public final static Integer SETT_DATE_MONTH = 3;
  94. /**
  95. * >>>>>>>>>>>>> 账户类型 >>>>>>>>>>>>>
  96. * 1 借记卡,4 对公账户
  97. */
  98. public final static Integer bank_account_type1 = 1;
  99. public final static Integer bank_account_type4 = 4;
  100. public final static Integer BANK_ACCOUNT_TYPE_ONE = 1;
  101. public final static Integer BANK_ACCOUNT_TYPE_FOUR = 4;
  102. /**
  103. *
  104. *
  105. * >>>>>>>>>>>>> 响应码 >>>>>>>>>>>>>
  106. *
  107. *
  108. */
  109. /**
  110. * 受理响应码
  111. */
  112. public static final Map<String, String> resp_code = new HashMap<>();
  113. public static final String resp_code1 = "A1000";
  114. public static final String resp_code2 = "A2000";
  115. public static final String resp_code3 = "A3000";
  116. static {
  117. resp_code.put(resp_code1, "受理成功");
  118. resp_code.put(resp_code2, "受理失败,具体失败原因查看业务响应码");
  119. resp_code.put(resp_code3, "受理未知(如:接口调用超时)");
  120. }
  121. /**
  122. * 商户状态
  123. */
  124. public static final Map<String, String> order_status = new HashMap<>();
  125. public static final String order_status1 = "P0001";
  126. public static final String order_status2 = "P1000";
  127. public static final String order_status3 = "P2000";
  128. public static final String order_status4 = "P3000";
  129. public static final String order_status5 = "P3001";
  130. public static final String order_status6 = "P3002";
  131. public static final String order_status7 = "P3003";
  132. public static final String ORDER_STATSUS_P3004 = "P3004";
  133. static {
  134. order_status.put(order_status1, "待处理中(受理中)");
  135. order_status.put(order_status2, "交易成功");
  136. order_status.put(order_status3, "交易失败");
  137. order_status.put(order_status4, "结果未知");
  138. order_status.put(order_status5, "处理中");
  139. order_status.put(order_status6, "激活");
  140. order_status.put(order_status7, "冻结");
  141. }
  142. /**
  143. * 认证状态
  144. */
  145. public static final Map<String, String> AUTH_STATUS = new HashMap<>();
  146. public static final String AUTH_STATUS_R4001 = "R4001";
  147. public static final String AUTH_STATUS_R4002 = "R4002";
  148. public static final String AUTH_STATUS_R4003 = "R4003";
  149. public static final String AUTH_STATUS_R4004 = "R4004";
  150. static {
  151. AUTH_STATUS.put(AUTH_STATUS_R4001, "未认证");
  152. AUTH_STATUS.put(AUTH_STATUS_R4002, "认证中");
  153. AUTH_STATUS.put(AUTH_STATUS_R4003, "认证失败");
  154. AUTH_STATUS.put(AUTH_STATUS_R4004, "认证成功");
  155. }
  156. /**
  157. * 审批状态
  158. */
  159. public static final Map<String, String> APPROVE_STATUS = new HashMap<>();
  160. public static final String APPROVE_STATUS_P1000 = "P1000";
  161. public static final String APPROVE_STATUS_P0001 = "P0001";
  162. public static final String APPROVE_STATUS_P2000 = "P2000";
  163. static {
  164. APPROVE_STATUS.put(APPROVE_STATUS_P1000, "审批通过");
  165. APPROVE_STATUS.put(APPROVE_STATUS_P0001, "未审批");
  166. APPROVE_STATUS.put(APPROVE_STATUS_P2000, "审批未通过");
  167. }
  168. /**
  169. * 业务响应码
  170. */
  171. public static final Map<String, String> biz_code = new HashMap<>();
  172. public static final String biz_code1 = "B100000";
  173. public static final String biz_code2 = "B100001";
  174. public static final String biz_code3 = "B100002";
  175. public static final String biz_code4 = "B100003";
  176. public static final String biz_code5 = "B101001";
  177. public static final String biz_code6 = "B101002";
  178. public static final String biz_code7 = "B101003";
  179. public static final String biz_code8 = "B101004";
  180. public static final String biz_code9 = "B101005";
  181. public static final String biz_code10 = "B103012";
  182. public static final String biz_code11 = "B103013";
  183. public static final String biz_code12 = "B102001";
  184. static {
  185. biz_code.put(biz_code1, "受理成功");
  186. biz_code.put(biz_code2, "验签失败");
  187. biz_code.put(biz_code3, "验参失败");
  188. biz_code.put(biz_code4, "结果未知,SYS_ERROR");
  189. biz_code.put(biz_code5, "登录名已存在");
  190. biz_code.put(biz_code6, "找不到卡bin");
  191. biz_code.put(biz_code7, "联行号有误");
  192. biz_code.put(biz_code8, "查找不到银行信息");
  193. biz_code.put(biz_code9, "不支持的结算卡类型");
  194. biz_code.put(biz_code10, "担保账户不存在");
  195. biz_code.put(biz_code11, "担保账户余额不足");
  196. biz_code.put(biz_code12, "分账方不存在");
  197. }
  198. /**
  199. * >>>>>>>>>>>>> 支付交易类型 >>>>>>>>>>>>>
  200. */
  201. public static final Map<String, String> frp_code = new HashMap<>();
  202. public static final String frp_code_ALIPAY_NATIVE = "ALIPAY_NATIVE";
  203. public static final String frp_code_ALIPAY_CARD = "ALIPAY_CARD";
  204. public static final String frp_code_ALIPAY_APP = "ALIPAY_APP";
  205. public static final String frp_code_ALIPAY_H5 = "ALIPAY_H5";
  206. public static final String frp_code_ALIPAY_FWC = "ALIPAY_FWC";
  207. public static final String frp_code_ALIPAY_SYT = "ALIPAY_SYT";
  208. public static final String frp_code_WEIXIN_NATIVE = "WEIXIN_NATIVE";
  209. public static final String frp_code_WEIXIN_CARD = "WEIXIN_CARD";
  210. public static final String frp_code_WEIXIN_APP = "WEIXIN_APP";
  211. public static final String frp_code_WEIXIN_APP2 = "WEIXIN_APP2";
  212. public static final String frp_code_WEIXIN_H5 = "WEIXIN_H5";
  213. public static final String frp_code_WEIXIN_GZH = "WEIXIN_GZH";
  214. public static final String frp_code_WEIXIN_XCX = "WEIXIN_XCX";
  215. public static final String frp_code_JD_NATIVE = "JD_NATIVE";
  216. public static final String frp_code_JD_CARD = "JD_CARD";
  217. public static final String frp_code_JD_APP = "JD_APP";
  218. public static final String frp_code_JD_H5 = "JD_H5";
  219. public static final String frp_code_QQ_NATIVE = "QQ_NATIVE";
  220. public static final String frp_code_QQ_CARD = "QQ_CARD";
  221. public static final String frp_code_QQ_APP = "QQ_APP";
  222. public static final String frp_code_QQ_H5 = "QQ_H5";
  223. public static final String frp_code_QQ_GZH = "QQ_GZH";
  224. public static final String frp_code_UNIONPAY_NATIVE = "UNIONPAY_NATIVE";
  225. public static final String frp_code_UNIONPAY_CARD = "UNIONPAY_CARD";
  226. public static final String frp_code_UNIONPAY_APP = "UNIONPAY_APP";
  227. public static final String frp_code_UNIONPAY_H5 = "UNIONPAY_H5";
  228. public static final String frp_code_BAIDU_NATIVE = "BAIDU_NATIVE";
  229. public static final String frp_code_SUNING_NATIVE = "SUNING_NATIVE";
  230. static {
  231. biz_code.put(frp_code_ALIPAY_NATIVE, "支付宝扫码(主扫)");
  232. biz_code.put(frp_code_ALIPAY_CARD, "支付宝刷卡(被扫)");
  233. biz_code.put(frp_code_ALIPAY_APP, "支付宝APP 支付");
  234. biz_code.put(frp_code_ALIPAY_H5, "支付宝H5");
  235. biz_code.put(frp_code_ALIPAY_FWC, "支付宝服务窗");
  236. biz_code.put(frp_code_ALIPAY_SYT, "支付宝收银台");
  237. biz_code.put(frp_code_WEIXIN_NATIVE, "微信扫码(主扫)");
  238. biz_code.put(frp_code_WEIXIN_CARD, "微信刷卡(被扫)");
  239. biz_code.put(frp_code_WEIXIN_APP, "微信APP 支付");
  240. biz_code.put(frp_code_WEIXIN_APP2, "微信APP2 支付");
  241. biz_code.put(frp_code_WEIXIN_H5, "微信H5 支付");
  242. biz_code.put(frp_code_WEIXIN_GZH, "微信公众号支付");
  243. biz_code.put(frp_code_WEIXIN_XCX, "微信小程序支付");
  244. biz_code.put(frp_code_JD_NATIVE, "京东扫码(主扫)");
  245. biz_code.put(frp_code_JD_CARD, "京东刷卡(被扫)");
  246. biz_code.put(frp_code_JD_APP, "京东APP 支付");
  247. biz_code.put(frp_code_JD_H5, "京东H5 支付");
  248. biz_code.put(frp_code_QQ_NATIVE, "QQ 扫码(主扫)");
  249. biz_code.put(frp_code_QQ_CARD, "QQ 刷卡(被扫)");
  250. biz_code.put(frp_code_QQ_APP, "QQ APP 支付");
  251. biz_code.put(frp_code_QQ_H5, "QQH5 支付");
  252. biz_code.put(frp_code_QQ_GZH, "QQ 公众号支付");
  253. biz_code.put(frp_code_UNIONPAY_NATIVE, "银联扫码(主扫)");
  254. biz_code.put(frp_code_UNIONPAY_CARD, "银联刷卡(被扫)");
  255. biz_code.put(frp_code_UNIONPAY_APP, "银联APP 支付");
  256. biz_code.put(frp_code_UNIONPAY_H5, "银联H5");
  257. biz_code.put(frp_code_BAIDU_NATIVE, "百度扫码(主扫)");
  258. biz_code.put(frp_code_SUNING_NATIVE, "苏宁扫码(主扫)");
  259. }
  260. /**
  261. *
  262. *
  263. * >>>>>>>>>>>>> 汇聚支付接口 >>>>>>>>>>>>>
  264. *
  265. *
  266. */
  267. /**
  268. * 版本
  269. */
  270. public static final String pay_version = "1.0";
  271. }