Versions in this module Expand all Collapse all v0 v0.1.5 Jan 24, 2024 v0.1.4 Jan 24, 2024 Changes in this version + const ServiceCreateAndPay + const ServiceQuery + const ServiceRefund + const ServiceRefundQuery + type BizErr struct + Code string + Msg string + func (e *BizErr) Error() string + type Client struct + func NewClient(merchantNo, key string) (*Client, error) + func (c *Client) CodePay(ctx context.Context, bm gopay.BodyMap) (rsp *RspPay, err error) + func (c *Client) Query(ctx context.Context, bm gopay.BodyMap) (rsp *RspPay, err error) + func (c *Client) Refund(ctx context.Context, bm gopay.BodyMap) (rsp *RspPay, err error) + func (c *Client) RefundQuery(ctx context.Context, bm gopay.BodyMap) (rsp *RspPay, err error) + type RspBase struct + MerchantName string + MerchantNum string + ResultCode string + ResultMsg string + SysCode string + type RspPay struct + Attach string + BusinessId string + BuyerFee int + CashierNum string + ChannelId string + ClientIp string + DataExtra string + DiscountFee int + DiscountVar string + InputFee int + OrderNum string + OrderNumChannel string + OrderNumExternal string + OrderNumOfficial string + OrderNumParent string + OrderType int + PayClient int + PayType int + RateFee int + RefundFee int + Remark string + SellerFee int + Status int + TerminalNum string + TotalFee int + TransBizCode string + TransBuyerId string + TransStart string + TransSubject string + TransTime string