Skip to content

Commit

Permalink
error logs test
Browse files Browse the repository at this point in the history
  • Loading branch information
TeisNP committed Feb 1, 2024
1 parent bb0a358 commit 25841f3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions internal/rest/controllers/webhooks/stripe.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ func (h *Handlers) handleWebhook(c hs.StripeContext) error {
event, err := h.BillingService.ConstructEvent(b, c.Signature)
if err != nil {
c.Log.WithError(err).Info("failed to construct stripe event")
c.Log.Info("construct")

return echo.ErrBadRequest
}
Expand All @@ -49,8 +48,10 @@ func (h *Handlers) handleWebhook(c hs.StripeContext) error {
return echo.ErrBadRequest
}

c.Log.Info(session.ClientReferenceID)
c.Log.Error(session.ClientReferenceID)
lineItems := sessionWithLineItems.LineItems
c.Log.Error(session)
c.Log.Error(*lineItems)
// Fulfill the purchase...
customerTeam, err := h.TeamService.GetByStripeID(c.Request().Context(), session.Customer.ID)
if err != nil {
Expand Down

0 comments on commit 25841f3

Please sign in to comment.