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