Versions in this module Expand all Collapse all v0 v0.0.1 Sep 6, 2021 Changes in this version + type Client struct + func Initialize(p InitConfig) (*Client, error) + func (c *Client) ApplyRefund(txID, refundID, reason string, amount int64) (RespApplyRefund, error) + func (c *Client) CloseOrder(txID string) error + func (c *Client) CreateOrder(orderId, description string, amount int64) (RespCreateOrder, error) + func (c *Client) CreateOrderH5(orderId, description, clientIP string, amount int64) (RespCreateOrder, error) + func (c *Client) OrderNotifyResolve(notify PayNotify) (OrderNotifyData, error) + func (c *Client) QueryOrder(orderId string) (RespQueryOrder, error) + func (c *Client) QueryRefund(refundId string) (RespApplyRefund, error) + func (c *Client) RefundNotifyResolve(notify PayNotify) (RefundNotifyData, error) + type InitConfig struct + ApiV3Key string + AppID string + Dev bool + MchCertSerialNumber string + MchID string + NotifyUrl string + PrivateKeyPath string + WechatCertificatePath string + type OrderNotifyData struct + Amount struct{ ... } + AppID string + BankType string + MchID string + OutTradeNo string + Payer struct{ ... } + SuccessTime string + TradeState string + TradeType string + TransactionId string + type PayNotify struct + CreateTime string + EventType string + ID string + Resource struct{ ... } + ResourceType string + Summary string + type RefundNotifyData struct + Amount struct{ ... } + MchID string + OutRefundNo string + OutTradeNo string + RefundID string + RefundStatus string + SuccessTime string + TransactionId string + UserReceivedAccount string + type RespApplyRefund struct + Amount struct{ ... } + Channel string + CreateTime string + FundsAccount string + OutRefundNo string + OutTradeNo string + RefundId string + Status string + TransactionId string + UserReceivedAccount string + type RespCreateOrder struct + CodeUrl string + H5Url string + type RespQueryOrder struct + Amount struct{ ... } + AppId string + Attach string + BankType string + MchId string + OutTradeNo string + Payer struct{ ... } + SuccessTime string + TradeState string + TradeStateDesc string + TradeType string + TransactionId string