Versions in this module Expand all Collapse all v1 v1.2.3 Jun 23, 2022 Changes in this version + const AccountTypeBasic + const AccountTypeFees + const AccountTypeOperation + const BillTypeAll + const BillTypeRechargeRefund + const BillTypeRefund + const BillTypeSuccess + const ContractAdd + const ContractDelete + const ContractDeleteAPI + const ContractDeleteContact + const ContractDeleteExpired + const ContractDeleteLogout + const ContractDeletePlatform + const ContractDeleteUndo + const ContractDeleteUser + const ContractEntrustOK + const ContractEntrustProcessing + const ContractEntrustUndo + const CouponTypeCash + const CouponTypeNoCash + const NoCredit + const NotFound + const OrderNotExist + const RedpackScene1 + const RedpackScene2 + const RedpackScene3 + const RedpackScene4 + const RedpackScene5 + const RedpackScene6 + const RedpackScene7 + const RedpackScene8 + const RedpackSendTypeAPI + const RedpackSendTypeActivity + const RedpackSendTypeUpload + const RedpackStatusFailed + const RedpackStatusReceived + const RedpackStatusRefund + const RedpackStatusRefunding + const RedpackStatusSending + const RedpackStatusSent + const RedpackTypeGroup + const RedpackTypeNormal + const RefundChannelBalance + const RefundChannelOriginal + const RefundChannelOtherBalance + const RefundChannelOtherBankCard + const RefundNotExist + const RefundStatusChange + const RefundStatusClosed + const RefundStatusProcessing + const RefundStatusSuccess + const ResultFail + const ResultNull + const ResultSuccess + const SystemError + const TradeAPP + const TradeJSAPI + const TradeMWEB + const TradeMicroPay + const TradeNative + const TradePAP + const TradeStateAccept + const TradeStateClosed + const TradeStateError + const TradeStateNotpay + const TradeStatePayFail + const TradeStatePaying + const TradeStateRefund + const TradeStateRevoked + const TradeStateSuccess + const TransferForceCheck + const TransferNoCheck + const TransferStatusBankFail + const TransferStatusFailed + const TransferStatusProcessing + const TransferStatusSuccess + const WorkWXAprovalMsg + const WorkWXNormalMsg + func APPEntrust(appid string, params *ParamsContract) wx.Action + func CloseOrder(appid, outTradeNO string) wx.Action + func DeleteContractByCode(appid, planID, contractCode, remark string) wx.Action + func DeleteContractByID(appid, contractID, remark string) wx.Action + func EntrustInPay(appid string, params *ParamsContractInPay) wx.Action + func H5Entrust(appid string, params *ParamsContract) wx.Action + func MPEntrust(appid string, params *ParamsContract) wx.Action + func OAEntrust(appid string, params *ParamsContract) wx.Action + func PappayApply(appid string, params *ParamsPappay) wx.Action + func QueryContractByCode(appid, planID, contractCode string) wx.Action + func QueryContractByID(appid string, contractID string) wx.Action + func QueryCorpRedpack(appid, billNO string) wx.Action + func QueryOrderByOutTradeNO(appid, outTradeNO string) wx.Action + func QueryOrderByTransactionID(appid, transactionID string) wx.Action + func QueryPappayByOutTradeNO(appid, outTradeNO string) wx.Action + func QueryPappayByTransactionID(appid, transactionID string) wx.Action + func QueryRedpack(appid, billNO string) wx.Action + func QueryRefundByOutRefundNO(appid, outRefundNO string, offset ...int) wx.Action + func QueryRefundByOutTradeNO(appid, outTradeNO string, offset ...int) wx.Action + func QueryRefundByRefundID(appid, refundID string, offset ...int) wx.Action + func QueryRefundByTransactionID(appid, transactionID string, offset ...int) wx.Action + func QueryTransferBalance(appid, partnerTradeNO string) wx.Action + func QueryTransferBankCard(appid, partnerTradeNO string) wx.Action + func QueryTransferPocket(appid, partnerTradeNO string) wx.Action + func RSAPublicKey() wx.Action + func RefundByOutTradeNO(appid, outTradeNO string, params *ParamsRefund) wx.Action + func RefundByTransactionID(appid, transactionID string, params *ParamsRefund) wx.Action + func SendCorpRedpack(appid, secret string, params *ParamsCorpRedpack) wx.Action + func SendGroupRedpack(appid string, params *ParamsRedpack) wx.Action + func SendMinipRedpack(appid string, params *ParamsRedpack) wx.Action + func SendNormalRedpack(appid string, params *ParamsRedpack) wx.Action + func TransferToBalance(appid string, params *ParamsTransferBalance) wx.Action + func TransferToBankCard(appid string, params *ParamsTransferBankCard, publicKey []byte) wx.Action + func TransferToPocket(appid, secret string, params *ParamsCorpTransfer) wx.Action + func UnifyOrder(appid string, params *ParamsUnifyOrder) wx.Action + type Mch struct + func New(mchid, apikey string, certs ...tls.Certificate) *Mch + func (mch *Mch) APPAPI(appid, prepayID string) wx.WXML + func (mch *Mch) ApiKey() string + func (mch *Mch) BatchQueryComment(ctx context.Context, appid, beginTime, endTime string, offset int, ...) ([]byte, error) + func (mch *Mch) DecryptWithAES256ECB(encrypt string) (wx.WXML, error) + func (mch *Mch) Do(ctx context.Context, action wx.Action, options ...wx.HTTPOption) (wx.WXML, error) + func (mch *Mch) DownloadBill(ctx context.Context, appid, billDate, billType string) ([]byte, error) + func (mch *Mch) DownloadFundFlow(ctx context.Context, appid string, billDate, accountType string) ([]byte, error) + func (mch *Mch) JSAPI(appid, prepayID string) wx.WXML + func (mch *Mch) MchID() string + func (mch *Mch) MinipRedpackJSAPI(appid, pkg string) wx.WXML + func (mch *Mch) SetClient(options ...wx.ClientOption) + func (mch *Mch) SetTLSClient(options ...wx.ClientOption) + func (mch *Mch) Sign(t SignType, m wx.WXML, toUpper bool) string + func (mch *Mch) VerifyWXMLResult(m wx.WXML) error + type ParamsContract struct + ContractCode string + ContractDisplayAccount string + NotifyURL string + OuterID int64 + PlanID string + RequestSerial int64 + ReturnAPP bool + ReturnAPPID string + ReturnWeb bool + SpbillCreateIP string + Timestamp int64 + type ParamsContractInPay struct + Attach string + Body string + ContractCode string + ContractDisplayAccount string + ContractNotifyURL string + Detail string + DeviceInfo string + FeeType string + GoodsTag string + LimitPay string + OpenID string + OutTradeNO string + PaymentNotifyURL string + PlanID string + ProductID string + RequestSerial int64 + SpbillCreateIP string + TimeExpire string + TimeStart string + TotalFee int + TradeType string + type ParamsCorpRedpack struct + ActName string + AgentID int64 + MchBillNO string + ReOpenID string + Remark string + SceneID string + SenderHeaderMediaID string + SenderName string + TotalAmount int + Wishing string + type ParamsCorpTransfer struct + ActName string + AgentID int64 + Amount int + ApprovalNumber string + ApprovalType int + CheckName string + Desc string + DeviceInfo string + OpenID string + PartnerTradeNO string + ReUserName string + SpbillCreateIP string + WWMsgType string + type ParamsPappay struct + Attach string + Body string + ContractID string + Detail string + FeeType string + GoodsTag string + NotifyURL string + OutTradeNO string + Receipt bool + SpbillCreateIP string + TotalFee int + type ParamsRedpack struct + ActName string + ClientIP string + MchBillNO string + ReOpenID string + Remark string + RiskInfo string + SceneID string + SendName string + TotalAmount int + TotalNum int + Wishing string + type ParamsRefund struct + NotifyURL string + OutRefundNO string + RefundAccount string + RefundDesc string + RefundFee int + RefundFeeType string + TotalFee int + type ParamsTransferBalance struct + Amount int + CheckName string + Desc string + DeviceInfo string + OpenID string + PartnerTradeNO string + ReUserName string + SpbillCreateIP string + type ParamsTransferBankCard struct + Amount int + BankCode string + Desc string + EncBankNO string + EncTrueName string + PartnerTradeNO string + type ParamsUnifyOrder struct + Attach string + Body string + Detail string + DeviceInfo string + FeeType string + GoodsTag string + LimitPay string + NotifyURL string + OpenID string + OutTradeNO string + ProductID string + Receipt bool + SceneInfo string + SpbillCreateIP string + TimeExpire string + TimeStart string + TotalFee int + TradeType string + type Reply struct + ReturnCode wx.CDATA + ReturnMsg wx.CDATA + XMLName xml.Name + func ReplyFail(msg string) *Reply + func ReplyOK() *Reply + type SignType string + const SignHMacSHA256 + const SignMD5