paymentapi

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const ParamPaymentID = "paymentId"

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockchainService

type BlockchainService interface {
	blockchain.Resolver
	blockchain.Convertor
}

type Handler

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

func New

func New(
	payments *payment.Service,
	merchants *merchant.Service,
	blockchainService BlockchainService,
	core *processing.Service,
	logger *zerolog.Logger,
) *Handler

func (*Handler) CreateCustomer

func (h *Handler) CreateCustomer(c echo.Context) error

CreateCustomer upserts customer for the payment.

func (h *Handler) CreatePaymentFromLink(c echo.Context) error

func (*Handler) CreatePaymentMethod

func (h *Handler) CreatePaymentMethod(c echo.Context) error

func (*Handler) GetCookie

func (h *Handler) GetCookie(c echo.Context) error

GetCookie sets CSRF cookie for customer's session and attaches X-CSRF-Token to response headers

func (*Handler) GetExchangeRate

func (h *Handler) GetExchangeRate(c echo.Context) error

func (*Handler) GetPayment

func (h *Handler) GetPayment(c echo.Context) error
func (h *Handler) GetPaymentLink(c echo.Context) error

func (*Handler) GetSupportedMethods

func (h *Handler) GetSupportedMethods(c echo.Context) error

func (*Handler) LockPaymentOptions

func (h *Handler) LockPaymentOptions(c echo.Context) error

func (*Handler) PaymentService

func (h *Handler) PaymentService() *payment.Service

Jump to

Keyboard shortcuts

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