Documentation ¶
Index ¶
- Constants
- type BlockchainService
- type Handler
- func (h *Handler) CreateCustomer(c echo.Context) error
- func (h *Handler) CreatePaymentFromLink(c echo.Context) error
- func (h *Handler) CreatePaymentMethod(c echo.Context) error
- func (h *Handler) GetCookie(c echo.Context) error
- func (h *Handler) GetExchangeRate(c echo.Context) error
- func (h *Handler) GetPayment(c echo.Context) error
- func (h *Handler) GetPaymentLink(c echo.Context) error
- func (h *Handler) GetSupportedMethods(c echo.Context) error
- func (h *Handler) LockPaymentOptions(c echo.Context) error
- func (h *Handler) PaymentService() *payment.Service
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 ¶
CreateCustomer upserts customer for the payment.
func (*Handler) CreatePaymentFromLink ¶
func (*Handler) CreatePaymentMethod ¶
func (*Handler) GetCookie ¶
GetCookie sets CSRF cookie for customer's session and attaches X-CSRF-Token to response headers
func (*Handler) GetExchangeRate ¶
func (*Handler) GetPayment ¶
func (*Handler) GetPaymentLink ¶
func (*Handler) GetSupportedMethods ¶
func (*Handler) LockPaymentOptions ¶
func (*Handler) PaymentService ¶
Click to show internal directories.
Click to hide internal directories.