paymentevents

package
v0.6.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

func New

func New(
	merchants *merchant.Service,
	processingService *processing.Service,
	payments *payment.Service,
	slackWebhookURL string,
	logger *zerolog.Logger,
) *Handler

func (*Handler) Consumers

func (h *Handler) Consumers() map[bus.Topic][]bus.Consumer

func (*Handler) ProcessPaymentStatusUpdate

func (h *Handler) ProcessPaymentStatusUpdate(ctx context.Context, message bus.Message) error

func (*Handler) ProcessWithdrawals

func (h *Handler) ProcessWithdrawals(ctx context.Context, message bus.Message) error

func (*Handler) SendSuccessfulPaymentNotification

func (h *Handler) SendSuccessfulPaymentNotification(ctx context.Context, message bus.Message) error

type PaymentWebhook

type PaymentWebhook struct {
	ID     string `json:"id"`
	Status string `json:"status"`

	CustomerEmail string `json:"customerEmail"`

	SelectedBlockchain string `json:"selectedBlockchain"`
	SelectedCurrency   string `json:"selectedCurrency"`

	IsTest bool `json:"isTest"`

	LinkID *string `json:"paymentLinkId"`
}

Jump to

Keyboard shortcuts

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