蛋蛋星球-制度模式
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

84 line
5.7 KiB

  1. package wechat
  2. const (
  3. // 境外国家地区
  4. China Country = 1 // 中国国内
  5. China2 Country = 2 // 中国国内(冗灾方案)
  6. SoutheastAsia Country = 3 // 东南亚
  7. Other Country = 4 // 其他国家
  8. // URL
  9. baseUrlCh = "https://api.mch.weixin.qq.com" // 中国国内
  10. baseUrlCh2 = "https://api2.mch.weixin.qq.com" // 中国国内
  11. baseUrlHk = "https://apihk.mch.weixin.qq.com" // 东南亚
  12. baseUrlUs = "https://apius.mch.weixin.qq.com" // 其他
  13. // 正式
  14. microPay = "/pay/micropay" // 提交付款码支付
  15. unifiedOrder = "/pay/unifiedorder" // 统一下单
  16. orderQuery = "/pay/orderquery" // 查询订单
  17. closeOrder = "/pay/closeorder" // 关闭订单
  18. refund = "/secapi/pay/refund" // 申请退款
  19. reverse = "/secapi/pay/reverse" // 撤销订单
  20. refundQuery = "/pay/refundquery" // 查询退款
  21. downloadBill = "/pay/downloadbill" // 下载对账单
  22. downloadFundFlow = "/pay/downloadfundflow" // 下载资金账单
  23. report = "/payitil/report" // 交易保障
  24. batchQueryComment = "/billcommentsp/batchquerycomment" // 拉取订单评价数据
  25. transfers = "/mmpaymkttransfers/promotion/transfers" // 企业付款(企业向微信用户个人付款)
  26. getTransferInfo = "/mmpaymkttransfers/gettransferinfo" // 查询企业付款
  27. sendCashRed = "/mmpaymkttransfers/sendredpack" // 发放现金红包
  28. sendAppletRed = "/mmpaymkttransfers/sendminiprogramhb" // 发放小程序红包
  29. sendGroupCashRed = "/mmpaymkttransfers/sendgroupredpack" // 发放裂变红包
  30. getRedRecord = "/mmpaymkttransfers/gethbinfo" // 查询红包记录
  31. authCodeToOpenid = "/tools/authcodetoopenid" // 授权码查询openid
  32. entrustPublic = "/papay/entrustweb" // 公众号纯签约
  33. entrustApp = "/papay/preentrustweb" // APP纯签约
  34. entrustH5 = "/papay/h5entrustweb" // H5纯签约
  35. entrustPaying = "/pay/contractorder" // 支付中签约
  36. entrustQuery = "/papay/querycontract" // 查询签约关系
  37. entrustApplyPay = "/pay/pappayapply" // 申请扣款
  38. entrustDelete = "/papay/deletecontract" // 申请解约
  39. profitSharing = "/secapi/pay/profitsharing" // 请求单次分账
  40. multiProfitSharing = "/secapi/pay/multiprofitsharing" // 请求多次分账
  41. profitSharingQuery = "/pay/profitsharingquery" // 查询分账结果
  42. profitSharingAddReceiver = "/pay/profitsharingaddreceiver" // 添加分账接收方
  43. profitSharingRemoveReceiver = "/pay/profitsharingremovereceiver" // 删除分账接收方
  44. profitSharingFinish = "/secapi/pay/profitsharingfinish" // 完结分账
  45. profitSharingOrderAmountQuery = "/pay/profitsharingorderamountquery" // 查询订单待分账金额
  46. profitSharingMerchantRatioQuery = "/pay/profitsharingmerchantratioquery" // 查询最大分账比例
  47. profitSharingReturn = "/secapi/pay/profitsharingreturn" // 分账退回
  48. profitSharingReturnQuery = "/pay/profitsharingreturnquery" // 分账回退结果查询
  49. payBank = "/mmpaysptrans/pay_bank" // 企业付款到银行卡API
  50. queryBank = "/mmpaysptrans/query_bank" // 查询企业付款到银行卡API
  51. getPublicKey = "https://fraud.mch.weixin.qq.com/risk/getpublickey" // 获取RSA加密公钥API
  52. // 海关自助清关
  53. customsDeclareOrder = "/cgi-bin/mch/customs/customdeclareorder" // 订单附加信息提交
  54. customsDeclareQuery = "/cgi-bin/mch/customs/customdeclarequery" // 订单附加信息查询
  55. customsReDeclareOrder = "/cgi-bin/mch/newcustoms/customdeclareredeclare" // 订单附加信息重推
  56. // SanBox
  57. sandboxGetSignKey = "https://api.mch.weixin.qq.com/sandboxnew/pay/getsignkey"
  58. sandboxMicroPay = "/sandboxnew/pay/micropay"
  59. sandboxUnifiedOrder = "/sandboxnew/pay/unifiedorder"
  60. sandboxOrderQuery = "/sandboxnew/pay/orderquery"
  61. sandboxCloseOrder = "/sandboxnew/pay/closeorder"
  62. sandboxRefund = "/sandboxnew/pay/refund"
  63. sandboxReverse = "/sandboxnew/pay/reverse"
  64. sandboxRefundQuery = "/sandboxnew/pay/refundquery"
  65. sandboxDownloadBill = "/sandboxnew/pay/downloadbill"
  66. sandboxReport = "/sandboxnew/payitil/report"
  67. // 支付类型
  68. TradeType_Mini = "JSAPI" // 小程序支付
  69. TradeType_JsApi = "JSAPI" // JSAPI支付
  70. TradeType_App = "APP" // app支付
  71. TradeType_H5 = "MWEB" // H5支付
  72. TradeType_Native = "NATIVE" // Native支付
  73. // 签名方式
  74. SignType_MD5 = "MD5"
  75. SignType_HMAC_SHA256 = "HMAC-SHA256"
  76. )