order

package
v3.2.57 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*payment.BaseClient
}

func RegisterProvider

func RegisterProvider(app kernel.ApplicationPaymentInterface) (*Client, error)

func (*Client) JSAPITransaction

func (comp *Client) JSAPITransaction(ctx context.Context, params *request.RequestJSAPIPrepay) (*response.ResponseUnitfy, error)

JSAPI pay transaction. 小程序支付 https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_1_1.shtml

func (*Client) PayTransaction

func (comp *Client) PayTransaction(ctx context.Context, entryPoint string, params request.Prepay, result interface{}) (interface{}, error)

func (*Client) Query

func (comp *Client) Query(ctx context.Context, params *object.HashMap) (*response.ResponseOrder, error)

func (*Client) QueryByOutTradeNumber

func (comp *Client) QueryByOutTradeNumber(ctx context.Context, transactionID string) (*response.ResponseOrder, error)

func (*Client) QueryByTransactionId

func (comp *Client) QueryByTransactionId(ctx context.Context, number string) (*response.ResponseOrder, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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