client

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2019 License: MIT Imports: 7 Imported by: 15

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidRequest = errors.New("invalid request")

Functions

This section is empty.

Types

type APIClient

type APIClient struct {
	HTTP           *http.Client
	APIURL         string
	ShopID, Secret string
}

APIClient определяет транспортный уровень коммуникаций с API.

func (*APIClient) Cancel

func (c *APIClient) Cancel(ctx context.Context, idempKey, paymentID string) (io.ReadCloser, error)

func (*APIClient) Capture

func (c *APIClient) Capture(ctx context.Context, idempKey, paymentID string, body *[]byte) (io.ReadCloser, error)

func (*APIClient) Create

func (c *APIClient) Create(ctx context.Context, idempKey string, body *[]byte) (io.ReadCloser, error)

func (*APIClient) Find

func (c *APIClient) Find(ctx context.Context, paymentID string) (io.ReadCloser, error)

Jump to

Keyboard shortcuts

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