Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChargePub ¶
type ChargePub struct { // 基本数据 Appid string `json:"appid" form:"appid" xml:"appid,omitempty,cdata"` MchId string `json:"mch_id" form:"mch_id" xml:"mch_id,omitempty,cdata"` NonceStr string `json:"nonce_str" form:"nonce_str" xml:"nonce_str,omitempty,cdata"` SignType string `json:"sign_type" form:"sign_type" xml:"sign_type,omitempty,cdata"` FeeType string `json:"fee_type" form:"fee_type" xml:"fee_type,omitempty,cdata"` NotifyUrl string `json:"notify_url" form:"notify_url" xml:"notify_url,omitempty,cdata"` TradeType string `json:"trade_type" form:"trade_type" xml:"trade_type,omitempty,cdata"` //设置APP支付 LimitPay string `json:"limit_pay" form:"limit_pay" xml:"limit_pay,omitempty,cdata"` // 指定不使用信用卡 // 业务数据 DeviceInfo string `json:"device_info" form:"device_info" xml:"device_info,omitempty,cdata"` Body string `json:"body" form:"body" xml:"body,omitempty,cdata"` //detail string `json:"detail" form:"detail" xml:"detail,omitempty,cdata"` JSON_UNESCAPED_UNICODE); Attach string `json:"attach" form:"attach" xml:"attach,omitempty,cdata"` OutTradeNo string `json:"out_trade_no" form:"out_trade_no" xml:"out_trade_no,omitempty,cdata"` TotalFee string `json:"total_fee" form:"total_fee" xml:"total_fee,omitempty,cdata"` SpbillCreateIp string `json:"spbill_create_ip" form:"spbill_create_ip" xml:"spbill_create_ip,omitempty,cdata"` TimeStart string `json:"time_start" form:"time_start" xml:"time_start,omitempty,cdata"` TimeExpire string `json:"time_expire" form:"time_expire" xml:"time_expire,omitempty,cdata"` Openid string `json:"openid" form:"openid" xml:"openid,omitempty,cdata"` }
type ResAppCharge ¶
type WeChatPayResult ¶
type WeChatPayResult struct { WechatBaseResult WechatReturnData WechatResultData }
type WeChatQueryResult ¶
type WeChatQueryResult struct { WechatBaseResult WechatReturnData WechatResultData TradeState string `json:"trade_state" form:"trade_state" xml:"trade_state"` TradeStateDesc string `json:"trade_state_desc" form:"trade_state_desc" xml:"trade_state_desc"` }
type WeChatReResult ¶
type WeChatReResult struct { ReturnCode string `json:"return_code" form:"return_code" xml:"return_code"` ReturnMsg string `json:"return_msg" form:"return_msg" xml:"return_msg"` AppID string `json:"appid" form:"appid" xml:"appid"` MchID string `json:"mch_id" form:"mch_id" xml:"mch_id"` DeviceInfo string `json:"device_info" form:"device_info" xml:"device_info"` NonceStr string `json:"nonce_str" form:"nonce_str" xml:"nonce_str"` Sign string `json:"sign" form:"sign" xml:"sign"` ResultCode string `json:"result_code" form:"result_code" xml:"result_code"` ErrCode string `json:"err_code" form:"err_code" xml:"err_code"` ErrCodeDes string `json:"err_code_des" form:"err_code_des" xml:"err_code_des"` TradeType string `json:"trade_type" form:"trade_type" xml:"trade_type"` PrepayID string `json:"prepay_id" form:"prepay_id" xml:"prepay_id"` CodeURL string `json:"code_url" form:"code_url" xml:"code_url"` MwebURL string `json:"mweb_url" form:"mweb_url" xml:"mweb_url"` }
WeChatResult 微信支付返回
type WechatBaseResult ¶
type WechatBaseResult struct { ReturnCode string `json:"return_code" form:"return_code" xml:"return_code"` ReturnMsg string `json:"return_msg" form:"return_msg" xml:"return_msg"` }
WechatBaseResult 基本信息
type WechatResultData ¶
type WechatResultData struct { OpenID string `json:"openid" form:"openid" xml:"openid,omitempty"` IsSubscribe string `json:"is_subscribe" form:"is_subscribe" xml:"is_subscribe,omitempty"` TradeType string `json:"trade_type" form:"trade_type" xml:"trade_type,omitempty"` BankType string `json:"bank_type" form:"bank_type" xml:"bank_type,omitempty"` FeeType string `json:"fee_type" form:"fee_type" xml:"fee_type,omitempty"` TotalFee int64 `json:"total_fee" form:"total_fee" xml:"total_fee,omitempty"` CashFeeType string `json:"cash_fee_type" form:"cash_fee_type" xml:"cash_fee_type,omitempty"` CashFee int64 `json:"cash_fee" form:"cash_fee" xml:"cash_fee,omitempty"` TransactionID string `json:"transaction_id" form:"transaction_id" xml:"transaction_id,omitempty"` OutTradeNO string `json:"out_trade_no" form:"out_trade_no" xml:"out_trade_no,omitempty"` Attach string `json:"attach" form:"attach" xml:"attach,omitempty"` TimeEnd string `json:"time_end" form:"time_end" xml:"time_end,omitempty"` }
WechatResultData 结果通用数据
type WechatReturnData ¶
type WechatReturnData struct { AppID string `json:"appid" form:"appid" xml:"appid,omitempty"` MchID string `json:"mch_id" form:"mch_id" xml:"mch_id,omitempty"` DeviceInfo string `json:"device_info" form:"device_info" xml:"device_info,omitempty"` NonceStr string `json:"nonce_str" form:"nonce_str" xml:"nonce_str,omitempty"` Sign string `json:"sign" form:"sign" xml:"sign,omitempty"` ResultCode string `json:"result_code" form:"result_code" xml:"result_code,omitempty"` ErrCode string `json:"err_code" form:"err_code" xml:"err_code,omitempty"` ErrCodeDes string `json:"err_code_des" form:"err_code_des" xml:"err_code_des,omitempty"` }
WechatReturnData 返回通用数据
Click to show internal directories.
Click to hide internal directories.