Versions in this module Expand all Collapse all v0 v0.1.0 Jan 24, 2020 v0.0.1 Jul 31, 2019 Changes in this version + func VerifySignMd5(verifyParams map[string]string, payKey string, sign string) bool + func WaxVerifyParams(req WaxPayNotifyReq) map[string]string + func WaxpayVerifySign(verifyParams map[string]string, signKey string, sign string) bool + func WxVerifyParams(req *WxPayNotifyReq) map[string]string + type AppPayRet struct + AppID string + Package string + PartnerID string + PrepayID string + Sign string + type AppRet struct + NonceStr string + Timestamp string + type AppUnifiedOrder struct + SceneInfo string + type RedPack interface + Send func(payKey, certFile, keyFile, rootCaFile string) (*RedPackResp, error) + type RedPackResp struct + ErrCode string + ErrCodeDes string + MchBillNo string + MchID string + ReOpenid string + ResultCode string + ReturnCode string + ReturnMsg string + SendListID string + SendTime string + TotalAmount string + WxAppID string + func (m *RedPackResp) CheckErr() error + type SendRedPackReq struct + ActName string + ClientIP string + ConsumeMchID string + MchBillNo string + MchID string + NonceStr string + ReOpenID string + Remark string + RiskInfo string + SceneID string + SendName string + Sign string + TotalAmount int64 + TotalNum int + Wishing string + WxAppID string + XMLName xml.Name + func (m *SendRedPackReq) Send(payKey string, certFile, keyFile, rootCaFile string) (*RedPackResp, error) + type UnifiedOrder struct + AppID string + Attach string + Body string + Detail string + DeviceInfo string + FeeType string + GoodsTag string + LimitPay string + MchID string + NonceStr string + NotifyURL string + OutTradeNo string + Sign string + SignType string + SpBillCreateIP string + TimeExpire string + TimeStart string + TotalFee int + TradeType string + XMLName xml.Name + type UnifiedOrderResp struct + AppID string + DeviceInfo string + ErrCode string + ErrCodeDes string + MchID string + NonceStr string + PrepayID string + ResultCode string + ReturnCode string + ReturnMsg string + Sign string + TradeType string + func NewUnifiedOrder(unifiedOrder interface{}) (unifiedOrderResp UnifiedOrderResp, err error) + type WaxPayNotifyReq struct + AppID string + BankType string + CashFee float64 + FeeType string + IsSubscribe string + MchID string + NonceStr string + OpenID string + OutTradeNo string + ResultCode string + ReturnCode string + Sign string + TimeEnd string + TotalFee float64 + TradeType string + TransactionID string + type WaxPayNotifyResp struct + ReturnCode string + ReturnMsg string + type WaxPayRet struct + AppID string + Package string + PaySign string + SignType string + type WaxRet struct + NonceStr string + Timestamp string + type WePay struct + AppID string + Body string + CertFile string + MchID string + NotifyURL string + PayKey string + RootCaFile string + TradeType string + func (m *WePay) AppPay(totalFee int) (results *AppPayRet, outTradeNo string, err error) + func (m *WePay) AppPayStruct(order AppUnifiedOrder) (results *AppPayRet, outTradeNo string, err error) + func (m *WePay) SendRedPack(totalAmount int64, openID, sendName, wishing, actName, remark string) (string, *RedPackResp, error) + func (m *WePay) SendRedPackByStruct(req *SendRedPackReq) (string, *RedPackResp, error) + func (m *WePay) WaxPay(totalFee int, openID string) (results *WaxPayRet, outTradeNo string, err error) + type WxPayNotifyReq struct + Appid string + Attach string + BankType string + CashFee string + CashFeeType string + Coupon []WxPayNotifyReqCoupon + CouponCount string + CouponFee string + DeviceInfo string + ErrCode string + ErrCodeDes string + FeeType string + IsSubscribe string + MchID string + NonceStr string + Openid string + OutTradeNo string + ResultCode string + ReturnCode string + Sign string + SubMchID string + TimeEnd string + TotalFee string + TradeType string + TransactionID string + XMLName xml.Name + type WxPayNotifyReqCoupon struct + CouponFee string + CouponID string + CouponType string + type WxaUnifiedOrder struct + OpenID string