Versions in this module Expand all Collapse all v0 v0.3.0 Jan 23, 2024 v0.2.8 Jan 3, 2024 v0.2.7 Dec 8, 2023 v0.2.6 Nov 13, 2023 v0.2.5 Oct 30, 2023 Changes in this version + const EmptyString + type AsyncXPayCoinPayNotifyRequest struct + CoinInfo *CoinInfo + CreateTime int + Env Env + Event string + FromUserName string + MsgType string + Openid string + OutTradeNo string + ToUserName string + WechatPayInfo *WeChatPayInfo + type AsyncXPayCoinPayNotifyResponse struct + type AsyncXPayGoodsDeliverNotifyRequest struct + CreateTime int + Env Env + Event string + FromUserName string + GoodsInfo *GoodsInfo + MsgType string + Openid string + OutTradeNo string + ToUserName string + WechatPayInfo *WeChatPayInfo + type AsyncXPayGoodsDeliverNotifyResponse struct + type CancelCurrencyPayRequest struct + Amount int + DeviceType int + OrderID string + PayOrderID string + UserIP string + type CancelCurrencyPayResponse struct + OrderID string + type CoinInfo struct + ActualPrice int + Attach string + OrigPrice int + Quantity int + type CommonRequest struct + Env Env + OpenID string + type CreateWithdrawOrderRequest struct + Env Env + WithdrawAmount string + WithdrawNO string + type CreateWithdrawOrderResponse struct + WithdrawNO string + WxWithdrawNO string + type CurrencyPayRequest struct + Amount int + DeviceType string + OrderID string + PayItem string + Remark string + UserIP string + type CurrencyPayResponse struct + Balance int + OrderID string + UsedPresentAmount int + type DownloadBillRequest struct + BeginDs string + EndDs string + type DownloadBillResponse struct + URL string + type Env int + const EnvProduction + const EnvSandbox + type ErrCode int + const BillGeneratingError + const InsufficientBalanceError + const OpenIDError + const OrderRefundedError + const RepeatOperationError + const RequestParamError + const SensitiveContentError + const SessionKeyExpiredError + const SignError + const Success + const SystemError + const TokenNotPublishedError + type GoodsInfo struct + ActualPrice int + Attach string + OrigPrice int + ProductID string + Quantity int + type NotifyProvideGoodsRequest struct + Env Env + OrderID string + WxOrderID string + type NotifyProvideGoodsResponse struct + type OrderItem struct + BizMeta string + BizType int + ChannelOrderID string + CouponFee int + CreateTime int64 + EnvType int + LeftFee int + OrderFee int + OrderID string + OrderType int + PaidFee int + PaidTime int64 + ProvideTime int64 + RefundFee int + Status OrderStatus + Token string + UpdateTime int64 + WxOrderID string + WxPayOrderID string + type OrderStatus int + const OrderStatusClosed + const OrderStatusCreated + const OrderStatusDelivered + const OrderStatusDelivering + const OrderStatusInit + const OrderStatusPaid + const OrderStatusRefundFailed + const OrderStatusRefunded + type PayItem struct + ProductID string + Quantity int + UnitPrice int + type PaymentRequest struct + Mode string + PaySig string + SignData string + Signature string + type PresentCurrencyRequest struct + Amount int + DeviceType string + OrderID string + type PresentCurrencyResponse struct + Balance int + OrderID string + PresentBalance int + type PublishItem struct + ErrMsg string + ID string + PublishStatus int + type QueryOrderRequest struct + OrderID string + WxOrderID string + type QueryOrderResponse struct + Order *OrderItem + type QueryPublishGoodsRequest struct + Env Env + type QueryPublishGoodsResponse struct + PublishItem []*PublishItem + Status int + type QueryUploadGoodsRequest struct + Env Env + type QueryUploadGoodsResponse struct + Status int + UploadItem []*UploadItem + type QueryUserBalanceRequest struct + UserIP string + type QueryUserBalanceResponse struct + Balance int + FirstSaveFlag int + PresentBalance int + SumBalance int + SumCost int + SumPresent int + SumSave int + type QueryWithdrawOrderRequest struct + Env Env + WithdrawNO string + type QueryWithdrawOrderResponse struct + CreateTime string + FailReason string + Status int + WithdrawAmount string + WithdrawNO string + WithdrawSuccessTimestamp int64 + WxWithdrawNo string + type RefundOrderRequest struct + BizMeta string + LeftFee int + OrderID string + RefundFee int + RefundOrderID string + RefundReason string + ReqFrom string + WxOrderID string + type RefundOrderResponse struct + PayOrderID string + PayWxOrderID string + RefundOrderID string + RefundWxOrderID string + type SignData struct + Attach string + BuyQuantity int + CurrencyType string + Env Env + GoodsPrice int + OfferID string + OutTradeNo string + Platform string + ProductID string + type StartPublishGoodsRequest struct + Env Env + PublishItem []*PublishItem + type StartPublishGoodsResponse struct + type StartUploadGoodsRequest struct + Env Env + UploadItem []*UploadItem + type StartUploadGoodsResponse struct + type URLParams struct + AccessToken string + Content string + Path string + PaySign string + Signature string + type UploadItem struct + ErrMsg string + ID string + ItemURL string + Name string + Price int + Remark string + UploadStatus int + type VirtualPayment struct + func NewVirtualPayment(ctx *context.Context) *VirtualPayment + func (s *VirtualPayment) CancelCurrencyPay(ctx context.Context, in *CancelCurrencyPayRequest) (out *CancelCurrencyPayResponse, err error) + func (s *VirtualPayment) CreateWithdrawOrder(ctx context.Context, in *CreateWithdrawOrderRequest) (out *CreateWithdrawOrderResponse, err error) + func (s *VirtualPayment) CurrencyPay(ctx context.Context, in *CurrencyPayRequest) (out *CurrencyPayResponse, err error) + func (s *VirtualPayment) DownloadBill(ctx context.Context, in *DownloadBillRequest) (out *DownloadBillResponse, err error) + func (s *VirtualPayment) NotifyProvideGoods(ctx context.Context, in *NotifyProvideGoodsRequest) (out *NotifyProvideGoodsResponse, err error) + func (s *VirtualPayment) PaySign(url, data string) (string, error) + func (s *VirtualPayment) PaySignature(url, data string) (paySign, signature string, err error) + func (s *VirtualPayment) PresentCurrency(ctx context.Context, in *PresentCurrencyRequest) (out *PresentCurrencyResponse, err error) + func (s *VirtualPayment) QueryOrder(ctx context.Context, in *QueryOrderRequest) (out *QueryOrderResponse, err error) + func (s *VirtualPayment) QueryPublishGoods(ctx context.Context, in *QueryPublishGoodsRequest) (out *QueryPublishGoodsResponse, err error) + func (s *VirtualPayment) QueryUploadGoods(ctx context.Context, in *QueryUploadGoodsRequest) (out *QueryUploadGoodsResponse, err error) + func (s *VirtualPayment) QueryUserBalance(ctx context.Context, in *QueryUserBalanceRequest) (out *QueryUserBalanceResponse, err error) + func (s *VirtualPayment) QueryWithdrawOrder(ctx context.Context, in *QueryWithdrawOrderRequest) (out *QueryWithdrawOrderResponse, err error) + func (s *VirtualPayment) RefundOrder(ctx context.Context, in *RefundOrderRequest) (out *RefundOrderResponse, err error) + func (s *VirtualPayment) SetSessionKey(sessionKey string) + func (s *VirtualPayment) Signature(data string) (string, error) + func (s *VirtualPayment) StartPublishGoods(ctx context.Context, in *StartPublishGoodsRequest) (out *StartPublishGoodsResponse, err error) + func (s *VirtualPayment) StartUploadGoods(ctx context.Context, in *StartUploadGoodsRequest) (out *StartUploadGoodsResponse, err error) + type WeChatPayInfo struct + MchOrderNo string + TransactionID string