Documentation ¶
Index ¶
- type Client
- func (comp *Client) Close(ctx context.Context, tradeNo string) (*response2.ResponsePayment, 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) QueryByOutRefundNO(ctx context.Context, OutRefundNO string) (*response.ResponseQueryByOutRefundNO, 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)
商户系统先调用该接口在微信支付服务后台生成预支付交易单,返回正确的预支付交易会话标识后再按Native、JSAPI、APP等不同场景生成交易串调起支付。 https://pay.weixin.qq.com/wiki/doc/apiv3_partner/apis/chapter4_1_1.shtml
func (*Client) PayTransaction ¶
func (*Client) QueryByOutRefundNO ¶
func (*Client) QueryByOutTradeNumber ¶
func (*Client) QueryByTransactionId ¶
func (*Client) TransactionApp ¶
func (comp *Client) TransactionApp(ctx context.Context, params *request.RequestAppPrepay) (*response.ResponseUnitfy, error)
商户系统先调用该接口在微信支付服务后台生成预支付交易单,返回正确的预支付交易会话标识后再按Native、JSAPI、APP等不同场景生成交易串调起支付。 https://pay.weixin.qq.com/wiki/doc/apiv3_partner/apis/chapter4_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)
商户系统先调用该接口在微信支付服务后台生成预支付交易单,返回正确的预支付交易会话标识后再按Native、JSAPI、APP等不同场景生成交易串调起支付。 https://pay.weixin.qq.com/wiki/doc/apiv3_partner/apis/chapter4_3_1.shtml
func (*Client) TransactionNative ¶
func (comp *Client) TransactionNative(ctx context.Context, params *request.RequestNativePrepay) (*response.ResponseCodeURL, error)
商户Native下单接口,微信后台系统返回链接参数code_url,商户后台系统将code_url值生成二维码图片,用户使用微信客户端扫码后发起支付。 https://pay.weixin.qq.com/wiki/doc/apiv3_partner/apis/chapter4_4_1.shtml