Versions in this module Expand all Collapse all v1 v1.1.23 May 8, 2023 v1.1.22 Apr 8, 2023 Changes in this version + const MchId + const MchSecret + const NotifyUrl + func WxNative(d NativeData) (string, error) + func WxPayCalcSign(mReq map[string]interface{}, key string) (sign string) + func WxSecondSign(appId string, timeStamp string, nonceStr string, prepayId string) (string, error) + type AmountData struct + Currency string + Total int + type CloseOrderReq struct + AppId string + MchId string + NonceStr string + OutTradeNo string + Sign string + type DownloadBillReq struct + AppId string + BillDate string + MchId string + NonceStr string + Sign string + type DownloadFundFlowReq struct + AccountType string + AppId string + BillDate string + MchId string + NonceStr string + Sign string + type NativeData struct + Amount AmountData + Appid string + Attach string + Description string + GoodsTag string + Mchid string + NotifyUrl string + OutTradeNo string + TimeExpire string + type NativeReponse struct + CodeUrl string + type OrderQueryReq struct + AppId string + MchId string + NonceStr string + OutTradeNo string + Sign string + type RefundQueryReq struct + AppId string + MchId string + NonceStr string + OutTradeNo string + Sign string + type RefundReq struct + AppId string + MchId string + NonceStr string + OutRefundNo string + OutTradeNo string + RefundFee int + Sign string + TotalFee int + type UnifyOrderReq struct + AppId string + Body string + MchId string + NonceStr string + NotifyUrl string + OpenId string + OutTradeNo string + Sign string + SpBillCreateIp string + TotalFee int + TradeType string + type WxPayResponse struct + BankType string + ErrCodeDes string + NonceStr string + OpenId string + OutRefundNo0 string + OutTradeNo string + PrepayId string + RefundCount int + RefundFee0 int + RefundStatus0 string + RefundSuccessTime0 string + ResultCode string + ReturnCode string + ReturnMsg string + TimeEnd string + TotalFee int + TradeState string + TradeStateDesc string + TransactionId string + func WxCloseOrder(appId string, orderCode string) (WxPayResponse, error) + func WxDownloadBill(appId string, billDate string) (WxPayResponse, error) + func WxDownloadFundFlow(appId string, billDate string, accountType string) (WxPayResponse, error) + func WxOrderQuery(appId string, orderCode string) (WxPayResponse, error) + func WxRefund(appId string, orderCode string, refundFee int, totalFee int) (WxPayResponse, error) + func WxRefundQuery(appId string, orderCode string) (WxPayResponse, error) + func WxUnifiedOrder(appId string, payTitle string, totalFee int, orderCode string, openId string) (WxPayResponse, error)