Documentation ¶
Index ¶
Constants ¶
View Source
const ( CodedUrl = "https://api.weixin.qq.com/sns/jscode2session?" AppCodeUrl = "https://api.weixin.qq.com/sns/oauth2/access_token?" TokenUrl = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=" PayUrl = "https://api.mch.weixin.qq.com/pay/unifiedorder" Query = "https://api.mch.weixin.qq.com/pay/orderquery" RefundUrl = "https://api.mch.weixin.qq.com/secapi/pay/refund" )
Variables ¶
View Source
var ( OrderParam interface{} Order = make(map[string]string) )
Functions ¶
func GetRemoteClientIp ¶
func GetRemoteClientIp() string
Types ¶
type Config ¶
type FindData ¶
type FindData struct { ReturnCode string `xml:"return_code"` ReturnMsg string `xml:"return_msg"` ResultCode string `xml:"result_code"` Appid string `xml:"appid"` NonceStr string `xml:"nonce_str"` Sign string `xml:"sign"` TradeType string `xml:"trade_type"` MchId string `xml:"mch_id"` Openid string `xml:"openid"` IsSubscribe string `xml:"is_subscribe"` TradeState string `xml:"trade_state"` BankType string `xml:"bank_type"` TotalFee string `xml:"total_fee"` FeeType string `xml:"fee_type"` CashFee string `xml:"cash_fee"` CashFeeType string `xml:"cash_fee_type"` TransactionId string `xml:"transaction_id"` OutTradeNo string `xml:"out_trade_no"` Attach string `xml:"attach"` TimeEnd string `xml:"time_end"` TradeStateDesc string `xml:"trade_state_desc"` }
type ReturnData ¶
Click to show internal directories.
Click to hide internal directories.