Documentation ¶
Index ¶
- type Client
- func (comp *Client) ByOutTradeNumber(ctx context.Context, outTradeNumber string) (*response.ResponseReserve, error)
- func (comp *Client) ByTransactionId(ctx context.Context, transactionID string) (*response.ResponseReserve, error)
- func (comp *Client) Reverse(ctx context.Context, number string, reverseType string) (*response.ResponseReserve, 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) ByOutTradeNumber ¶
func (comp *Client) ByOutTradeNumber(ctx context.Context, outTradeNumber string) (*response.ResponseReserve, error)
Reverse order by out trade number. https://pay.weixin.qq.com/wiki/doc/api/micropay.php?chapter=9_11&index=3
func (*Client) ByTransactionId ¶
func (comp *Client) ByTransactionId(ctx context.Context, transactionID string) (*response.ResponseReserve, error)
Reverse order by transaction_id. https://pay.weixin.qq.com/wiki/doc/api/micropay.php?chapter=9_11&index=3
Click to show internal directories.
Click to hide internal directories.