WXPayConstants.java 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. package com.fdkankan.pay.wx.sdk;
  2. /**
  3. * 常量
  4. */
  5. public class WXPayConstants {
  6. public enum SignType {
  7. MD5, HMACSHA256
  8. }
  9. public static final String FAIL = "FAIL";
  10. public static final String SUCCESS = "SUCCESS";
  11. public static final String HMACSHA256 = "HMAC-SHA256";
  12. public static final String MD5 = "MD5";
  13. public static final String FIELD_SIGN = "sign";
  14. public static final String FIELD_SIGN_TYPE = "sign_type";
  15. public static final String MICROPAY_URL = "https://api.mch.weixin.qq.com/pay/micropay";
  16. public static final String UNIFIEDORDER_URL = "https://api.mch.weixin.qq.com/pay/unifiedorder";
  17. public static final String ORDERQUERY_URL = "https://api.mch.weixin.qq.com/pay/orderquery";
  18. public static final String REVERSE_URL = "https://api.mch.weixin.qq.com/secapi/pay/reverse";
  19. public static final String CLOSEORDER_URL = "https://api.mch.weixin.qq.com/pay/closeorder";
  20. public static final String REFUND_URL = "https://api.mch.weixin.qq.com/secapi/pay/refund";
  21. public static final String REFUNDQUERY_URL = "https://api.mch.weixin.qq.com/pay/refundquery";
  22. public static final String DOWNLOADBILL_URL = "https://api.mch.weixin.qq.com/pay/downloadbill";
  23. public static final String REPORT_URL = "https://api.mch.weixin.qq.com/payitil/report";
  24. public static final String SHORTURL_URL = "https://api.mch.weixin.qq.com/tools/shorturl";
  25. public static final String AUTHCODETOOPENID_URL = "https://api.mch.weixin.qq.com/tools/authcodetoopenid";
  26. // sandbox
  27. public static final String SANDBOX_MICROPAY_URL = "https://api.mch.weixin.qq.com/sandboxnew/pay/micropay";
  28. public static final String SANDBOX_UNIFIEDORDER_URL = "https://api.mch.weixin.qq.com/sandboxnew/pay/unifiedorder";
  29. public static final String SANDBOX_ORDERQUERY_URL = "https://api.mch.weixin.qq.com/sandboxnew/pay/orderquery";
  30. public static final String SANDBOX_REVERSE_URL = "https://api.mch.weixin.qq.com/sandboxnew/secapi/pay/reverse";
  31. public static final String SANDBOX_CLOSEORDER_URL = "https://api.mch.weixin.qq.com/sandboxnew/pay/closeorder";
  32. public static final String SANDBOX_REFUND_URL = "https://api.mch.weixin.qq.com/sandboxnew/secapi/pay/refund";
  33. public static final String SANDBOX_REFUNDQUERY_URL = "https://api.mch.weixin.qq.com/sandboxnew/pay/refundquery";
  34. public static final String SANDBOX_DOWNLOADBILL_URL = "https://api.mch.weixin.qq.com/sandboxnew/pay/downloadbill";
  35. public static final String SANDBOX_REPORT_URL = "https://api.mch.weixin.qq.com/sandboxnew/payitil/report";
  36. public static final String SANDBOX_SHORTURL_URL = "https://api.mch.weixin.qq.com/sandboxnew/tools/shorturl";
  37. public static final String SANDBOX_AUTHCODETOOPENID_URL = "https://api.mch.weixin.qq.com/sandboxnew/tools/authcodetoopenid";
  38. }