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)
Click to show internal directories.
Click to hide internal directories.