Documentation ¶
Index ¶
- type Client
- func (comp *Client) Close(ctx context.Context, tradeNo string) (*http.Response, error)
- func (comp *Client) JSAPITransaction(ctx context.Context, params *request.RequestJSAPIPrepay) (*response.ResponseUnitfy, error)
- func (comp *Client) PayTransaction(ctx context.Context, entryPoint string, params request.Prepay, ...) (interface{}, error)
- func (comp *Client) Query(ctx context.Context, params *object.HashMap) (*response.ResponseOrder, error)
- func (comp *Client) QueryByOutTradeNumber(ctx context.Context, transactionID string) (*response.ResponseOrder, error)
- func (comp *Client) QueryByTransactionId(ctx context.Context, number string) (*response.ResponseOrder, error)
- func (comp *Client) TransactionApp(ctx context.Context, params *request.RequestAppPrepay) (*response.ResponseUnitfy, error)
- func (comp *Client) TransactionAppCombine(ctx context.Context, params *request.RequestCombinePrepay) (*response.ResponseUnitfy, error)
- func (comp *Client) TransactionH5(ctx context.Context, params *request.RequestH5Prepay) (*response.ResponseH5URL, error)
- func (comp *Client) TransactionNative(ctx context.Context, params *request.RequestNativePrepay) (*response.ResponseCodeURL, error)
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 (*Client) QueryByOutTradeNumber ¶
func (*Client) QueryByTransactionId ¶
func (*Client) TransactionApp ¶
func (comp *Client) TransactionApp(ctx context.Context, params *request.RequestAppPrepay) (*response.ResponseUnitfy, error)
App pay transaction. https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_2_1.shtml
func (*Client) TransactionAppCombine ¶
func (comp *Client) TransactionAppCombine(ctx context.Context, params *request.RequestCombinePrepay) (*response.ResponseUnitfy, error)
合单APP下单API https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter5_1_1.shtml
func (*Client) TransactionH5 ¶
func (comp *Client) TransactionH5(ctx context.Context, params *request.RequestH5Prepay) (*response.ResponseH5URL, error)
H5 pay transaction. https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_3_1.shtml
func (*Client) TransactionNative ¶
func (comp *Client) TransactionNative(ctx context.Context, params *request.RequestNativePrepay) (*response.ResponseCodeURL, error)
Native pay transaction. https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_4_1.shtml
Click to show internal directories.
Click to hide internal directories.