#Benoît

1 messages · Page 1 of 1 (latest)

empty sorrelBOT
static mica
#

Hello, you can do this by having one Subscription object with subscription items for each plan

#

So instead of creating a second Subscription, you would update the pre-existing one to group them

orchid sun
#

Hello ! Thank you ! Nice idea !
Will the 2nd subscription item be prorate AND immediatly paid when i will add it to the first one ?

static mica
orchid sun
#

Great ! Thank you very much !
May i ask you 2 more questions about "multiple payments" ?

static mica
#

Yes please, ask away

orchid sun
#

Thanks !

1/ For a category of users, i will have to create a system where a "main" user will attach many "sub-users" to his account, and the number of sub-users will have to be visible in the invoice of the main user.
Is it possible to create such a system from the multiple susbscriptions system we spoke about just above ?

static mica
#

Can you clarify what an account is here? I assume an account on your website that there aren't necessarily any Stripe objects representing?

#

Also are you essentially saying that this main account will pay for the subscription plan(s) for all of its sub accounts and the sub accounts want just an invoice for their subscription?

orchid sun
#

Yes, that's it

#

In my app, a user will be able to subscribe to 2 differents plans. And he will be also able to add multiple users on my app who will access the features his "parent" would have paid for, and for each new user added, the parent will be uppriced of 6€/user for example.

So there will be a unique monthly invoice, for the main user, that will contain the multiple subscription items, and the "addon" per user

#

So sorry for my english

static mica
#

Unfortunately I don't think Stripe supports that kind of subscription. We just have one Customer object associated with the Subscription and can't segment parts of that subscription out from each other

#

You will either want to create your own receipts for the sub accounts

#

Actually my second suggestion would not have worked. I think that making your own receipts/invoices would be the best way to go here

orchid sun
#

I think i made a mistake. Only the main user will be charged and will see the invoice. The sub-users won't be part of Stripe

#

I already use a system of subscription items with quantities for extra recurring charges. I should be able to use this system

static mica
#

Oh, you want info about the sub-users to appear on the invoice?

#

Unfortunately I don't think this is possible when just using our default invoices. There is not a custom description field for each subscription item unless you make each of them separate products

orchid sun
#

Here is an example of what i have now in my app (real estate app). A user paid a plan of 29€/month to access the app, and we let him freely add a unique real estate property, but extra charge him of 6€/month for all added other properties. He has 2 others properties, so we extra charge him of 2x6€/month

#

I would like to create a unique subscription with multiple subscription items :

  • items for the different plans the user can subscribe to
  • items for all the extra charges per user
static mica
#

And what part of that are you looking for help on implementing? Are you unsure how the extra charges should be represented?

orchid sun
#

Yes. I'd like to be sure i use the correct way for extra charges (by just adding one subscription item on which i just change the quantity)

#

(my original question was not this one, but i think your answers gave me some good directions to take)

static mica
#

Yep, that is a great way to add the extra charges

orchid sun
#

Nice, thank you 👍

And the 2nd question i wanted to ask you is : If i remove all subscription items from a subscription, does the parent subscription still remains or is it automaticaly delete ?

static mica
#

It would not automatically delete but I think we may raise an error if you try to have 0 items. You may have to either replace the last item with a $0 item, pause/unpause the subscription, or cancel the subscription and create a new one later

#

That being said I am not 100% sure if there will be an error or not. Can you try on one of your test mode subscriptions and let me know if you get an error?

orchid sun
#

Yes but i'm just conceptualizing at the moment, all my devs & tests will come later

#

If i remember, i will let you know