Versions in this module Expand all Collapse all v1 v1.5.93 Mar 14, 2023 v1.5.92 Mar 13, 2023 Changes in this version + const OrderTypeReqSN + const OrderTypeTrxId + const PayTypeAliApp + const PayTypeAliJS + const PayTypeAliScan + const PayTypeNumH5 + const PayTypeQQJS + const PayTypeQQScan + const PayTypeUniJS + const PayTypeUniPay + const PayTypeWXJS + const PayTypeWXMini + const PayTypeWXScan + const RSA + const SM2 + type BizErr struct + Code string + Msg string + func (e *BizErr) Error() string + type Client struct + AppId string + CusId string + SignType string + func NewClient(cusId, appId, privateKey, publicKey string, isProd bool) (*Client, error) + func (c *Client) Cancel(ctx context.Context, bm gopay.BodyMap) (rsp *RefundRsp, err error) + func (c *Client) Close(ctx context.Context, bm gopay.BodyMap) (rsp *CloseRsp, err error) + func (c *Client) Pay(ctx context.Context, bm gopay.BodyMap) (rsp *PayRsp, err error) + func (c *Client) Query(ctx context.Context, orderType string, no string) (rsp *ScanPayRsp, err error) + func (c *Client) Refund(ctx context.Context, bm gopay.BodyMap) (rsp *RefundRsp, err error) + func (c *Client) ScanPay(ctx context.Context, bm gopay.BodyMap) (rsp *ScanPayRsp, err error) + func (c *Client) SetOrgId(id string) *Client + type CloseRsp struct + TrxStatus string + type PayRsp struct + ChnlTrxId string + ErrMsg string + FinTime string + PayInfo string + RandomStr string + Reqsn string + TrxStatus string + Trxid string + type RefundRsp struct + ChnlTrxId string + ErrMsg string + Fee string + FinTime string + RandomStr string + Reqsn string + TrxCode string + TrxStatus string + Trxid string + type RspBase struct + Appid string + Cusid string + RetCode string + RetMsg string + Sign string + type ScanPayRsp struct + Acct string + AcctType string + ChnlData string + ChnlTrxId string + Chnlid string + Cmid string + ErrMsg string + Fee string + FinTime string + InitAmt string + RandomStr string + Reqsn string + TrxAmt string + TrxCode string + TrxStatus string + Trxid string