Versions in this module Expand all Collapse all v1 v1.0.7 Nov 29, 2022 Changes in this version + const AuthCodeToOpenidUrl + const CloseOrderUrl + const DownloadBillUrl + const DownloadFundFlowUrl + const Fail + const HMACSHA256 + const MD5 + const MicroPayUrl + const OrderQueryUrl + const RefundQueryUrl + const RefundUrl + const ReportUrl + const ReverseUrl + const SandboxAuthCodeToOpenidUrl + const SandboxCloseOrderUrl + const SandboxDownloadBillUrl + const SandboxDownloadFundFlowUrl + const SandboxMicroPayUrl + const SandboxOrderQueryUrl + const SandboxRefundQueryUrl + const SandboxRefundUrl + const SandboxReportUrl + const SandboxReverseUrl + const SandboxShortUrl + const SandboxUnifiedOrderUrl + const ShortUrl + const Sign + const Success + const UnifiedOrderUrl + func MapToXml(params Params) string + type Account struct + func NewAccount(appID string, mchID string, apiKey string, isSanbox bool) *Account + func (a *Account) SetCertData(certData []byte) + 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) DownloadFundFlow(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