Documentation
¶
Index ¶
- type PayClient
- func (c *PayClient) ApplyOrderRefund(req *eto.ApplyOrderRefundReq) (*eto.ApplyOrderRefundResp, error)
- func (c *PayClient) EnrichApplyOrderRefundReq(req *eto.ApplyOrderRefundReq) error
- func (c *PayClient) EnrichSyncOrderStatusReq(req *eto.SyncOrderStatusReq) error
- func (c *PayClient) NotifyResponse(err error) (string, error)
- func (c *PayClient) ParseNotify(body []byte, res eto.CallbackModel) error
- func (c *PayClient) ParseRefundAudit(body []byte) (*eto.OrderRefundAuditNotify, error)
- func (c *PayClient) ParseRefundNotify(body []byte) (*eto.RefundNotify, error)
- func (c *PayClient) ParseUnionOrderNotify(body []byte) (*eto.UnionOrderNotify, error)
- func (c *PayClient) PayNotifyResponse(err error) (string, error)
- func (c *PayClient) RequestApi()
- func (c *PayClient) SyncOrderStatus(req *eto.SyncOrderStatusReq) error
- func (c *PayClient) UnionOrder(req *eto.UnionOrderReq) (*eto.UnionOrderRes, error)
- func (c *PayClient) VerifyNotify(body []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PayClient ¶
type PayClient struct { DealID string AppKey string PrivateKey []byte PublicKey []byte PlatformRsaPublicKey []byte // ip白名单,回调校验 WhiteClientIP map[string]bool // contains filtered or unexported fields }
func (*PayClient) ApplyOrderRefund ¶
func (c *PayClient) ApplyOrderRefund(req *eto.ApplyOrderRefundReq) (*eto.ApplyOrderRefundResp, error)
func (*PayClient) EnrichApplyOrderRefundReq ¶
func (c *PayClient) EnrichApplyOrderRefundReq(req *eto.ApplyOrderRefundReq) error
func (*PayClient) EnrichSyncOrderStatusReq ¶
func (c *PayClient) EnrichSyncOrderStatusReq(req *eto.SyncOrderStatusReq) error
func (*PayClient) ParseNotify ¶
func (c *PayClient) ParseNotify(body []byte, res eto.CallbackModel) error
解析回调通知内容,res必须为指针类型
func (*PayClient) ParseRefundAudit ¶
func (c *PayClient) ParseRefundAudit(body []byte) (*eto.OrderRefundAuditNotify, error)
func (*PayClient) ParseRefundNotify ¶
func (c *PayClient) ParseRefundNotify(body []byte) (*eto.RefundNotify, error)
func (*PayClient) ParseUnionOrderNotify ¶
func (c *PayClient) ParseUnionOrderNotify(body []byte) (*eto.UnionOrderNotify, error)
func (*PayClient) PayNotifyResponse ¶
func (*PayClient) RequestApi ¶
func (c *PayClient) RequestApi()
func (*PayClient) SyncOrderStatus ¶
func (c *PayClient) SyncOrderStatus(req *eto.SyncOrderStatusReq) error
func (*PayClient) UnionOrder ¶
func (c *PayClient) UnionOrder(req *eto.UnionOrderReq) (*eto.UnionOrderRes, error)
func (*PayClient) VerifyNotify ¶
Click to show internal directories.
Click to hide internal directories.