response.go 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. //==================================
  2. // * Name:Jerry
  3. // * Tel:18017448610
  4. // * DateTime:2019/1/13 14:03
  5. //==================================
  6. package gopay
  7. type weChatPayResponse struct {
  8. ReturnCode string `xml:"return_code"`
  9. ReturnMsg string `xml:"return_msg"`
  10. Appid string `xml:"appid"`
  11. MchId string `xml:"mch_id"`
  12. DeviceInfo string `xml:"device_info"`
  13. NonceStr string `xml:"nonce_str"`
  14. Sign string `xml:"sign"`
  15. ResultCode string `xml:"result_code"`
  16. ErrCode string `xml:"err_code"`
  17. ErrCodeDes string `xml:"err_code_des"`
  18. PrepayId string `xml:"prepay_id"`
  19. TradeType string `xml:"trade_type"`
  20. }
  21. type getSignKeyResponse struct {
  22. ReturnCode string `xml:"return_code"`
  23. ReturnMsg string `xml:"return_msg"`
  24. Retmsg string `xml:"retmsg"`
  25. Retcode string `xml:"retcode"`
  26. MchId string `xml:"mch_id"`
  27. SandboxSignkey string `xml:"sandbox_signkey"`
  28. }
  29. type aliPayResponse struct {
  30. ReturnCode string `xml:"return_code"`
  31. ReturnMsg string `xml:"return_msg"`
  32. Appid string `xml:"appid"`
  33. MchId string `xml:"mch_id"`
  34. DeviceInfo string `xml:"device_info"`
  35. NonceStr string `xml:"nonce_str"`
  36. Sign string `xml:"sign"`
  37. ResultCode string `xml:"result_code"`
  38. PrepayId string `xml:"prepay_id"`
  39. TradeType string `xml:"trade_type"`
  40. }