#Vasil
1 messages · Page 1 of 1 (latest)
what if I have subscription without payments ($0/mo)? does it work for it?
yep
note it has to be invoice.paid, not invoice.payment_succeeded (that's the difference between those two events, the latter only fires for actual payments, not $0 invoices, so you always want invoice.paid)
and when user changes subscription plan - both events will be fired right?
invoice.paid + customer.subscription.updated
it would depend how they change the plan. If they change the plan and you use proration_behavior:always_invoice then there might be an invoice.paid event associated with a change yes
so it really depends
is that = invoice immediately option (configured in customer portal)?
Hey! Taking over for my colleague. Let me catch up.
one more question: what if user downgrades immediately from let say $10/mo to $5/mo plan - will invoice.paid fired in this case?
this one yes it's equivalent
It depends if the first plan (10$/mo) was paid or not. What I may suggest you to do, is to try doing some test and play with Stripe Test Clock Feature. You can cover and observe all of the subscription behaviour:
https://stripe.com/docs/billing/testing/test-clocks
good, thank you