Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RedPacketGateWay = "https://api.mch.weixin.qq.com/mmpaymkttransfers/sendredpack"
RedPacketGateWay 发放红包接口 https://pay.weixin.qq.com/wiki/doc/api/tools/cash_coupon.php?chapter=13_4&index=3
Functions ¶
This section is empty.
Types ¶
type Params ¶
type Params struct { MchBillno string // 商户订单号 SendName string // 商户名称 ReOpenID string TotalAmount int TotalNum int Wishing string ClientIP string ActName string Remark string RootCa string // ca证书 }
Params 调用参数
type RedPacket ¶
RedPacket struct extends context
func NewRedPacket ¶
NewRedPacket return an instance of RedPacket package
type Response ¶
type Response struct { ReturnCode string `xml:"return_code"` ReturnMsg string `xml:"return_msg"` ResultCode string `xml:"result_code,omitempty"` ErrCode string `xml:"err_code,omitempty"` ErrCodeDes string `xml:"err_code_des,omitempty"` MchBillno string `xml:"mch_billno,omitempty"` MchID string `xml:"mch_id,omitempty"` Wxappid string `xml:"wxappid"` ReOpenID string `xml:"re_openid"` TotalAmount int `xml:"total_amount"` SendListid string `xml:"send_listid"` }
Response 接口返回
Click to show internal directories.
Click to hide internal directories.