Versions in this module Expand all Collapse all v1 v1.0.0 Sep 10, 2018 Changes in this version + const AUTHCODETOOPENID_URL + const CLOSEORDER_URL + const DOWNLOADBILL_URL + const FAIL + const FIELD_SIGN + const FIELD_SIGN_TYPE + const HMACSHA256 + const MD5 + const MICROPAY_URL + const ORDERQUERY_URL + const REFUNDQUERY_URL + const REFUND_URL + const REPORT_URL + const REVERSE_URL + const SANDBOX_AUTHCODETOOPENID_URL + const SANDBOX_CLOSEORDER_URL + const SANDBOX_DOWNLOADBILL_URL + const SANDBOX_MICROPAY_URL + const SANDBOX_ORDERQUERY_URL + const SANDBOX_REFUNDQUERY_URL + const SANDBOX_REFUND_URL + const SANDBOX_REPORT_URL + const SANDBOX_REVERSE_URL + const SANDBOX_SHORTURL_URL + const SANDBOX_UNIFIEDORDER_URL + const SHORTURL_URL + const SUCCESS + const UNIFIEDORDER_URL + func MapToXml(params Params) string + type Account struct + func NewAccount(appID string, mchID string, apiKey string, isSanbox bool) *Account + func (a *Account) SetCertData(certPath string) + type Client struct + func NewClient(account *Account) *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 struct + func (n *Notifies) NotOK(errMsg string) string + func (n *Notifies) OK() string + type Params map[string]string + func XmlToMap(xmlStr string) Params + func (p Params) ContainsKey(key string) bool + func (p Params) GetInt64(k string) int64 + func (p Params) GetString(k string) string + func (p Params) SetInt64(k string, i int64) Params + func (p Params) SetString(k, s string) Params