service

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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PaymentOption

type PaymentOption func(*PaymentService)

func PaymentWithAcquirer

func PaymentWithAcquirer(acquirer acquirer.IAcquirer) PaymentOption

func PaymentWithHttpClient

func PaymentWithHttpClient(httpClient *http.Client) PaymentOption

type PaymentService

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

func NewPaymentService

func NewPaymentService(options ...PaymentOption) *PaymentService

func (*PaymentService) ProcessTransaction

func (s *PaymentService) ProcessTransaction(ctx context.Context, transaction *entity.Transaction) (*entity.Payment, error)

Jump to

Keyboard shortcuts

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