Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Wechat = &wechat{}
Functions ¶
This section is empty.
Types ¶
type UnifyOrderReq ¶
type UnifyOrderReq struct { Appid string `xml:"appid"` Body string `xml:"body"` MchID string `xml:"mch_id"` NonceStr string `xml:"nonce_str"` NotifyURL string `xml:"notify_url"` TradeType string `xml:"trade_type"` SpbillCreateIP string `xml:"spbill_create_ip"` TotalFee int `xml:"total_fee"` OutTradeNo string `xml:"out_trade_no"` Sign string `xml:"sign"` }
请求https://api.mch.weixin.qq.com/pay/unifiedorder需要填入的参数 refs: https://pay.weixin.qq.com/wiki/doc/api/app/app.php?chapter=9_1
type UnifyOrderResp ¶
type UnifyOrderResp struct { Return_code string `xml:"return_code"` Return_msg string `xml:"return_msg"` Appid string `xml:"appid"` MchID string `xml:"mch_id"` NonceStr string `xml:"nonce_str"` Sign string `xml:"sign"` ResultCode string `xml:"result_code"` PrepayID string `xml:"prepay_id"` TradeType string `xml:"trade_type"` ErrCode string `xml:"err_code"` }
Click to show internal directories.
Click to hide internal directories.