You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -122,9 +120,6 @@ func (api *API) processStripeSub(ctx context.Context, s *stripe.Subscription) er
122
120
}
123
121
// Cancel all subs aside from the latest one.
124
122
p:= stripe.SubscriptionCancelParams{
125
-
Params: stripe.Params{
126
-
StripeAccount: &s.Customer.ID,
127
-
},
128
123
InvoiceNow: &True,
129
124
Prorate: &True,
130
125
}
@@ -136,9 +131,10 @@ func (api *API) processStripeSub(ctx context.Context, s *stripe.Subscription) er
136
131
api.staticLogger.Warnf("Empty subscription ID! User ID '%s', Stripe ID '%s', subscription object '%+v'", u.ID.Hex(), u.StripeID, subs)
137
132
continue
138
133
}
139
-
subsc, err=sub.Cancel(subsc.ID, &p)
134
+
cs, err:=sub.Cancel(subsc.ID, &p)
140
135
iferr!=nil {
141
136
api.staticLogger.Warnf("Failed to cancel sub with id '%s' for user '%s' with Stripe customer id '%s'. Error: '%s'", subsc.ID, u.ID.Hex(), s.Customer.ID, err.Error())
137
+
api.staticLogger.Tracef("Sub information returned by Stripe: %+v", cs)
142
138
} else {
143
139
api.staticLogger.Tracef("Successfully cancelled sub with id '%s' for user '%s' with Stripe customer id '%s'.", subsc.ID, u.ID.Hex(), s.Customer.ID)
0 commit comments