acquirer

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cielo

type Cielo struct {
	// contains filtered or unexported fields
}

func NewCielo

func NewCielo(url string, key string) *Cielo

func (*Cielo) Name

func (a *Cielo) Name() string

func (*Cielo) RequestBuilder

func (a *Cielo) RequestBuilder(ctx context.Context, transaction *entity.Transaction) (*http.Request, error)

func (*Cielo) ResponseExtractor

func (a *Cielo) ResponseExtractor(response *http.Response) (*entity.Payment, error)

type IAcquirer

type IAcquirer interface {
	Name() string
	RequestBuilder(context.Context, *entity.Transaction) (*http.Request, error)
	ResponseExtractor(*http.Response) (*entity.Payment, error)
}

type Rede

type Rede struct {
	// contains filtered or unexported fields
}

func NewRede

func NewRede(url string, key string) *Rede

func (*Rede) Name

func (a *Rede) Name() string

func (*Rede) RequestBuilder

func (a *Rede) RequestBuilder(ctx context.Context, transaction *entity.Transaction) (*http.Request, error)

func (*Rede) ResponseExtractor

func (a *Rede) ResponseExtractor(response *http.Response) (*entity.Payment, error)

type Stone

type Stone struct {
	// contains filtered or unexported fields
}

func NewStone

func NewStone(url string, key string) *Stone

func (*Stone) Name

func (a *Stone) Name() string

func (*Stone) RequestBuilder

func (a *Stone) RequestBuilder(ctx context.Context, transaction *entity.Transaction) (*http.Request, error)

func (*Stone) ResponseExtractor

func (a *Stone) ResponseExtractor(response *http.Response) (*entity.Payment, error)

Jump to

Keyboard shortcuts

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