#King Of Web Devs-Subscription

1 messages · Page 1 of 1 (latest)

lament glen
whole flicker
#

For example: Subscription would be Silver which has Product 1, Product 2. Then Gold Subscription which has Product 1, Product 2, Product 3 etc

lament glen
#

Hi, yes you can have multiple products per 1 Subscription AFAIK

wanton vortex
#

Which is what i want however i want multiple users to have that same subscription
That's not really possible
Rather than creating a new subscription on the fly with new id's every time someone signs up.
that's how the Stripe API works!

#

a Customer object has (multiple) Subscription objects and each Subscription object has one single Customer object

#

you could maybe set up your database so that one single Stripe Customer cus_xxx object is shared between multiple users of your system, not sure if that's the kind of use case you're going for

whole flicker
#

Hi thanks for the quick response.

#

im aware i can get my system to have packages and apply a price to that package and create the subscription from this

#

im sure stripe used to have plan functionality so you could add a plan (with multiple products) and create a subscription from that plan

wanton vortex
#

hmm, I don't think that's true. You have a Product, which is the thing you sell. A Product can have multiple Plans (Plans were later merged into Prices), which are price points and recurring schedules they sell for. A Subscription can have multiple Plans. A Customer object has (multiple) Subscription objects and each Subscription object has one single Customer object

#

you can create a Subscripton with e.g. 5 plans, and each Plan is for a different Product

#

that's totally fine, maybe that's what you mean?

whole flicker
#

so we are currently using a legacy integration and the way we are doing it currently is by having a product and adding that product to a subscription. If thats the way i have to continue to do it then thats fine.

wanton vortex
#

can you share the exact code you're using maybe?

#

I want to help you, I'm just unclear what you're asking or where the block is. As you say, you are, "fully aware i can create a subscription with multiple products.".
you asked if you can 'template' that (so you pass something like one single ID and we create a Subscription that uses a particular set of multiple products and prices, like somehow passing an overall product ID that corresponds to multiple things individually) and the answer is no, there's nothing like that and never has been to the best of my knowledge(it's business logic you can build though, just make the API call with the same set of products when needed).