Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ReportRequest ¶
type ReportRequest struct {
XMLName struct{} `xml:"xml" json:"-"`
DeviceInfo string `xml:"device_info"` // 微信支付分配的终端设备号,商户自定义
NonceStr string `xml:"nonce_str"` // 随机字符串,不长于32位。NOTE: 如果为空则系统会自动生成一个随机字符串。
SignType string `xml:"sign_type"` // 签名类型,目前支持HMAC-SHA256和MD5,默认为MD5
InterfaceURL string `xml:"interface_url"` // 刷卡支付终端上报统一填:https://api.mch.weixin.qq.com/pay/batchreport/micropay/total
UserIP string `xml:"user_ip"` // 发起接口调用时的机器IP
Trades string `xml:"trades"` // 上报数据包
ExecuteTime int `xml:"execute_time"` // 接口耗时情况,单位为毫秒
ReturnCode string `xml:"return_code"` // 返回状态码
ReturnMsg string `xml:"return_msg"` // 返回信息
ResultCode string `xml:"result_code"` // 业务结果
ErrCode string `xml:"err_code"` // 错误代码
ErrCodeDesc string `xml:"err_code_des"` // 错误代码描述
OutTradeNo string `xml:"out_trade_no"` // 商户订单号
Time time.Time `xml:"time"` // 商户上报时间
}
Click to show internal directories.
Click to hide internal directories.