#krystian

1 messages · Page 1 of 1 (latest)

gilded jayBOT
small shadow
#

Currently, im trying to control how the UI components are rendered based on a UserPlan enum that contains [Read-Only, Trial, Starter, Pro], and changing it based on stripe webhook events (which i'm still learning which events i should use when, what data i should store in my db, etc). The thought with the Read-Only plan is that its supposed to represent the case when smart retries have been exhausted for a user on a free-trial, or for a user thats been paying but their credit card failed - in which case i'd want to restrict the users account to read-access only, so they can still view to their data until they add/fix their payment info. Its also not entirely clear whether i should configure the subscription settings to change the subscription status to canceled, or leave it as incomplete_expired

#

if the user comes back and finally enters in their CC, then do i create a new subscription? or reuse the one that already exists? For a simple SaaS app with a starter & pro tier, should the user ever have more than 1 subscription?

#

if i wouldn't want to cancel the subscription, and keep it as inactive, then what would be a scenario where i'd want to actually cancel the subscription?

lunar hare
#

Hi, let me catch up here

#

What you're trying to accomplish is to how to best keep track of these two subscriptions correct? (on the first question)

small shadow
#

more or less, yes

#

although i currently only create 1 subscription for each user

#

not two (which based on how you phrased the question, it makes me think i should have 1 subscription for each product_id?)

lunar hare
small shadow
#

is there any scenario in which i would want a second subscription created for the same user?

#

trying to understand if its:
1 Customer to N subscriptions (in the case of just a starter and pro plan)

lunar hare
#

There would, but it all depends on what you're trying to do. Like a customer could have 1 yearly subscription and another subscription that is billed monthly.