ecommerce

package
v0.0.0-...-f535f45 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 23, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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) NotifyResponse

func (c *PayClient) NotifyResponse(err error) (string, 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 (c *PayClient) PayNotifyResponse(err error) (string, error)

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

func (c *PayClient) VerifyNotify(body []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL