#abdulmannanbutt

1 messages · Page 1 of 1 (latest)

gilded terraceBOT
heady silo
#

Yes, you will want to line up the Stripe subscription IDs with users on your server and the content that you are unlocking for them

#

Usually based on the product of the invoice item

#

And the customer would be represented by a Customer object

#

So the most common pattern I know of is unlocking content based on product IDs for the user connected to the subscription's Customer ID

mild perch
#

hm... So, It means, for each subscription type, we have to make modifications in the code to enable/disable the features. and If we want to introduce a new payment plan, we have to update the code again.

#

So, if we add a new Product ID, we have to do the coding and release the feature. And enable the product after that.

heady silo
#

Yes, that sounds like a sensible way to impliment that

mild perch
#

OK. Can you please share the appropriate guide to implement the subscription?

Our use case if, We want to give 3 plans to a user
1: 10 tries per user/month
2: 20 tries per user/month
3: Unlimited tries per user/month

heady silo
#

In Stripe those would be three separate Products and each would have a Price object that represents the monthly fee for that product

#

You would then create a Subscription with the appropriate Price object(s) for the plans that you want to charge the user for