Documentation ¶
Index ¶
- type Client
- func (comp *Client) Close(tradeNo string) (*http.Response, error)
- func (comp *Client) JSAPITransaction(params *request.RequestJSAPIPrepay) (*response.ResponseUnitfy, error)
- func (comp *Client) PayTransaction(entryPoint string, params request.Prepay, result interface{}) (interface{}, error)
- func (comp *Client) Query(params *object.HashMap) (*response.ResponseOrder, error)
- func (comp *Client) QueryByOutTradeNumber(transactionID string) (*response.ResponseOrder, error)
- func (comp *Client) QueryByTransactionId(number string) (*response.ResponseOrder, error)
- func (comp *Client) TransactionApp(params *request.RequestAppPrepay) (*response.ResponseUnitfy, error)
- func (comp *Client) TransactionAppCombine(params *request.RequestCombinePrepay) (*response.ResponseUnitfy, error)
- func (comp *Client) TransactionH5(params *request.RequestH5Prepay) (*response.ResponseH5URL, error)
- func (comp *Client) TransactionNative(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 NewClient ¶
func NewClient(app *payment.ApplicationPaymentInterface) *Client
func RegisterProvider ¶
func RegisterProvider(app kernel.ApplicationPaymentInterface) *Client
func (*Client) JSAPITransaction ¶
func (comp *Client) JSAPITransaction(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 (comp *Client) QueryByOutTradeNumber(transactionID string) (*response.ResponseOrder, error)
func (*Client) QueryByTransactionId ¶
func (comp *Client) QueryByTransactionId(number string) (*response.ResponseOrder, error)
func (*Client) TransactionApp ¶
func (comp *Client) TransactionApp(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(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(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(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.