Documentation ¶
Index ¶
- Constants
- func MapToXml(params Params) string
- type Account
- type Client
- func (c *Client) AuthCodeToOpenid(params Params) (Params, error)
- func (c *Client) CloseOrder(params Params) (Params, error)
- func (c *Client) DownloadBill(params Params) (Params, error)
- func (c *Client) MicroPay(params Params) (Params, error)
- func (c *Client) OrderQuery(params Params) (Params, error)
- func (c *Client) Refund(params Params) (Params, error)
- func (c *Client) RefundQuery(params Params) (Params, error)
- func (c *Client) Report(params Params) (Params, error)
- func (c *Client) Reverse(params Params) (Params, error)
- func (c *Client) SetAccount(account *Account)
- func (c *Client) SetHttpConnectTimeoutMs(ms int)
- func (c *Client) SetHttpReadTimeoutMs(ms int)
- func (c *Client) SetSignType(signType string)
- func (c *Client) ShortUrl(params Params) (Params, error)
- func (c *Client) Sign(params Params) string
- func (c *Client) UnifiedOrder(params Params) (Params, error)
- func (c *Client) ValidSign(params Params) bool
- type Notifies
- type Params
Constants ¶
View Source
const ( FAIL = "FAIL" SUCCESS = "SUCCESS" HMACSHA256 = "HMACSHA256" MD5 = "MD5" FIELD_SIGN = "sign" FIELD_SIGN_TYPE = "sign_type" MICROPAY_URL = "https://api.mch.weixin.qq.com/pay/micropay" UNIFIEDORDER_URL = "https://api.mch.weixin.qq.com/pay/unifiedorder" ORDERQUERY_URL = "https://api.mch.weixin.qq.com/pay/orderquery" REVERSE_URL = "https://api.mch.weixin.qq.com/secapi/pay/reverse" CLOSEORDER_URL = "https://api.mch.weixin.qq.com/pay/closeorder" REFUND_URL = "https://api.mch.weixin.qq.com/secapi/pay/refund" REFUNDQUERY_URL = "https://api.mch.weixin.qq.com/pay/refundquery" DOWNLOADBILL_URL = "https://api.mch.weixin.qq.com/pay/downloadbill" REPORT_URL = "https://api.mch.weixin.qq.com/payitil/report" SHORTURL_URL = "https://api.mch.weixin.qq.com/tools/shorturl" AUTHCODETOOPENID_URL = "https://api.mch.weixin.qq.com/tools/authcodetoopenid" SANDBOX_MICROPAY_URL = "https://api.mch.weixin.qq.com/sandboxnew/pay/micropay" SANDBOX_UNIFIEDORDER_URL = "https://api.mch.weixin.qq.com/sandboxnew/pay/unifiedorder" SANDBOX_ORDERQUERY_URL = "https://api.mch.weixin.qq.com/sandboxnew/pay/orderquery" SANDBOX_REVERSE_URL = "https://api.mch.weixin.qq.com/sandboxnew/secapi/pay/reverse" SANDBOX_CLOSEORDER_URL = "https://api.mch.weixin.qq.com/sandboxnew/pay/closeorder" SANDBOX_REFUND_URL = "https://api.mch.weixin.qq.com/sandboxnew/secapi/pay/refund" SANDBOX_REFUNDQUERY_URL = "https://api.mch.weixin.qq.com/sandboxnew/pay/refundquery" SANDBOX_DOWNLOADBILL_URL = "https://api.mch.weixin.qq.com/sandboxnew/pay/downloadbill" SANDBOX_REPORT_URL = "https://api.mch.weixin.qq.com/sandboxnew/payitil/report" SANDBOX_SHORTURL_URL = "https://api.mch.weixin.qq.com/sandboxnew/tools/shorturl" SANDBOX_AUTHCODETOOPENID_URL = "https://api.mch.weixin.qq.com/sandboxnew/tools/authcodetoopenid" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Account ¶
type Account struct {
// contains filtered or unexported fields
}
func NewAccount ¶
创建微信支付账号
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) AuthCodeToOpenid ¶
授权码查询OPENID接口
func (*Client) SetAccount ¶
func (*Client) SetHttpConnectTimeoutMs ¶
func (*Client) SetHttpReadTimeoutMs ¶
func (*Client) SetSignType ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.