webhook

package
v1.0.49 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2026 License: AGPL-3.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
}

Handler handles Stripe webhook events

func NewHandler

func NewHandler(
	client *stripe.Client,
	customerSvc *stripe.CustomerService,
	paymentSvc *stripe.PaymentService,
	invoiceSyncSvc *stripe.InvoiceSyncService,
	planSvc stripe.StripePlanService,
	subSvc stripe.StripeSubscriptionService,
	entityIntegrationMappingRepo entityintegrationmapping.Repository,
	connectionRepo connection.Repository,
	logger *logger.Logger,
) *Handler

NewHandler creates a new Stripe webhook handler

func (*Handler) HandleWebhookEvent

func (h *Handler) HandleWebhookEvent(ctx context.Context, event *stripeapi.Event, environmentID string, services *ServiceDependencies) error

HandleWebhookEvent processes a Stripe webhook event

type ServiceDependencies

type ServiceDependencies = interfaces.ServiceDependencies

Jump to

Keyboard shortcuts

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