Versions in this module Expand all Collapse all v0 v0.0.5 Feb 18, 2021 Changes in this version + func ReturnCodeToMsg(code string) string + type AlipayClient struct + func NewAlipayClient(appId, appPrivate, alipayPublicKey string) *AlipayClient + func (s *AlipayClient) GetNotifyResult(httpRequest *http.Request) (map[string]string, *AppPayNotifyResponse, error) + func (s *AlipayClient) GetOrderQrCode(outTradeNo, subject, body string, amount float64) (string, error) + func (s *AlipayClient) GetOrderString(outTradeNo, subject, body string, amount float64, passbackParams string, ...) (string, error) + func (s *AlipayClient) GetReturnResultSignString(returnResultString string) string + func (s *AlipayClient) NotifyVerify(dataParams map[string]string) (bool, error) + func (s *AlipayClient) ReturnVerify(returnResultResp *AppPayReturnResultResponse) (bool, error) + func (s *AlipayClient) SetGatewayUrl(gatewayUrl string) + func (s *AlipayClient) SetNotifyUrl(notifyUrl string) + func (s *AlipayClient) SetSellerId(sellerId string) + func (s *AlipayClient) SetTimeoutExpress(timeoutExpress string) + func (s *AlipayClient) Sign(datas map[string]string) (string, error) + type AlipayTradePreCreateResponse struct + Code string + Msg string + OutTradeNo string + QrCode string + SubCode string + SubMSg string + func (s *AlipayTradePreCreateResponse) ToMap() map[string]string + type AppOauthTokenQueryResponse struct + AuthAppId string + AuthEnd string + AuthMethods []string + AuthStart string + ExpiresIn string + Status string + UserId string + type AppOauthTokenResponse struct + AppAuthToken string + AppRefreshToken string + AuthAppId string + ExpiresIn string + ReExpiresIn string + UserId string + type AppPayNotifyResponse struct + AppId string + Body string + BuyerId string + BuyerLogonId string + BuyerPayAmount string + Charset string + FundBillList string + GmtClose string + GmtCreate string + GmtPayment string + GmtRefund string + InvoiceAmount string + NotifyId string + NotifyTime string + NotifyType string + OutBizNo string + OutTradeNo string + PassbackParams string + PointAmount string + ReceiptAmount string + RefundFee string + SellerEmail string + SellerId string + Sign string + SignType string + Subject string + TotalAmount string + TradeNo string + TradeStatus string + Version string + VoucherDetailList string + func (s *AppPayNotifyResponse) ToMap() map[string]string + type AppPayRequest struct + AppId string + BizContent *AppPayRequestContent + Charset string + Format string + Method string + NotifyUrl string + Sign string + SignType string + Timestamp string + Version string + func (s *AppPayRequest) ToMap() map[string]string + type AppPayRequestContent struct + Body string + DisablePayChannels string + EnablePayChannels string + ExtendParams string + GoodsType string + OutTradeNo string + PassbackParams string + ProductCode string + PromoParams string + SellerId string + StoreId string + Subject string + TimeExpire string + TimeoutExpress string + TotalAmount string + type AppPayResponse struct + OutTradeNo string + SellerId string + TotalAmount string + TradeNo string + type AppPayReturnResult struct + AppPayTradeAppPayResponse *AppPayTradeAppPayResponse + Sign string + SignType string + type AppPayReturnResultResponse struct + Memo string + RawResultString string + Result *AppPayReturnResult + ResultStatus string + type AppPayTradeAppPayResponse struct + AppId string + Charset string + Code string + Msg string + OutTradeNo string + SellerId string + Timestamp string + TotalAmount string + TradeNo string + func (s *AppPayTradeAppPayResponse) ToMap() map[string]string + type PreCreateRequest struct + AppAuthToken string + AppId string + BizContent *PreCreateyRequestContent + Charset string + Format string + Method string + NotifyUrl string + Sign string + SignType string + Timestamp string + Version string + func (s *PreCreateRequest) ToMap() map[string]string + type PreCreateResponse struct + AlipayTradePreCreateResponse *AlipayTradePreCreateResponse + Sign string + type PreCreateyGoodsDetail struct + AlipayGoodsId string + Body string + GoodsCategory string + GoodsId string + GoodsName string + Price float64 + Quantity int + ShowUrl string + type PreCreateyRequestContent struct + AlipayStoreId string + Body string + BuyerLogonId string + DiscountableAmount float64 + GoodsDetail []*PreCreateyGoodsDetail + OperatorId string + OutTradeNo string + SellerId string + StoreId string + Subject string + TerminalId string + TimeoutExpress string + TotalAmount float64 + UndiscountableAmount float64