#Rohit89

1 messages · Page 1 of 1 (latest)

meager flareBOT
sonic thicket
#

Do you have a more specific question?

rocky dome
#

Yeah, we dont wan't to give fix number of seats that user can add. User can signup with monthly flat rate and later can add any number of users. Each seat has cost 79$ per month,.

If I want to add 20 more users I need to buy 20 more seats. So this is not fixed that can be passed during signup

#

During checkout while signup we are passing only one product that is monthly flat rate.

#

How user can add another product per seat under same subscription? Is it possible via billing portal ?

#

A subscription can have two products one is flat monthly rate and other is per seat

sonic thicket
#

Yeah, that is possible, but you wouldn't be able to do it with the Customer Portal, you would need to build a custom form to add one-off products to the Subscription

rocky dome
#

You mean some form where they enter number of seats. Can it be redirected to checkout? I dont think so as checkout is only for create subscription not update subscription.

We need to update subscription via subscription API
?

sonic thicket
rocky dome
#

But how it will add the second product which is per seat to existing flat rate monthly subscription

#

?

sonic thicket
#

You add it as a one-time Invoice Item or a recurring line-item, depending on if you want them to be charged for that number of seats per-month or not

rocky dome
#

it will be added to existing subscription?

#

The flat rate monthly subscription

sonic thicket
#

It can be. If you want it to be recurring, you would just set it as a Subscription Item instead of an Invoice Item, making sure that the Subscription Item has a Price that is set to recurring: https://stripe.com/docs/api/subscription_items/create#create_subscription_item-price_data-recurring

rocky dome
#

Will it charge immediately? As we want if user is buying 10 seats, it should charged immediately and then next billing cycle is after month

sonic thicket
#

Yeah, you can add a Subscription Item to the Subscription and then set proration_behavior to always_invoice which will create an Invoice immediately for the added seats: https://stripe.com/docs/api/subscription_items/create#create_subscription_item-proration_behavior

If you don't want the amount due for the seats to be prorated (e.g. you want the customer to be charged full price for the newly added seats), then you'll want to set the proration_date to whatever the Subscription's current_period_start timestamp is (see here: https://stripe.com/docs/api/subscriptions/object#subscription_object-current_period_start)

https://stripe.com/docs/api/subscription_items/create#create_subscription_item-proration_date

rocky dome
#

Isn't proration_behavior will be always_invoice ??

Let's say user is signed up today with flat rate of 130$ per month.

User added 3 new seats on 10th of January, hence we will create a subscription item with quantity 3 and attached to above existing subscription. Hence on 10th of January we will charge for 3 seats.

Now on 15 of jan, user again add 5 more seats. Hence we charged for 5 more immediately. Total 8 seats has been purchased. 3 are purchased on 10th of January and 5 are purchased on 15th of January.

So now for 3 seats the next billing will be on 10th of Feb and for 5 seats billing will be on 15th of feb?

sonic thicket
#

Hmmm, let me check

#

So no, the billing period remains the same. An Invoice is immediately created for the amount of the seats on the day that the Subscription Item is created.

#

So they would be charged on whatever day they add the seats, but their Subscription payment would still be due on the same date as before

rocky dome
#

So on above case when 3 seats and 5 seats will be charged?

#
  1. Subscription bought on jan 2nd flat rate 130$
  2. Add 3 users on 10 jan and charge immediately.
  3. Add 5 users on 15th jan and charge immediately.

On feb 2nd, subscription will be charged for 130$. When amount of 3 seats and 5 seats will be charged??

sonic thicket
#

The amounts for 3 seats will be charged on the day that the 3 seats were added. The amount for the 5 seats will be charged on the day that the 5 seats are added. Subscription will still be charged on January 2nd for 130$

rocky dome
#

because it creates 2 subscription items attached to existing subscription of flat rate. both items has different subscribed dates. Corect?

#

Will the items are visible on portal to increase and decrease the quantity?

sonic thicket
#

So if you set the Subscription Items to recurring (as I mentioned in a previous message here: #1059897318368870490 message) then the customer will be charged on January 10th for the 3 users (because they added the users on January 10th), and then they will be charged again on February 2nd for the 3 users (because that is the next due date on the next billing cycle for the Subscription that the Subscription Items were added to)

Discord

Discord is the easiest way to communicate over voice, video, and text. Chat, hang out, and stay close with your friends and communities.

rocky dome
#

Ok, If I want they will be charged for 3 users on 10th feb not 10 jan. Is that doable?

sonic thicket
#

You would need to create an entirely separate Subscription for that. A Subscription can only have one billing cycle

rocky dome
#

Got it. Above is one subscription with multiple items.

If we go with 2 subscription model. One for flat monthly rate and other for seats, then it can be doable.

Second subscription is created on 10th jan with 3 seats. I have update the quantity to 8 from portal on 15th jan.

Now will it charge for extra 5 on 15th jan or 10th feb?

sonic thicket
#

You can choose at that point when you want it to charge for the quantity of 8. If you just updated the quantity on the Subscription, you would set proration_behavior to either prorate or not (see here: https://stripe.com/docs/api/subscriptions/update#update_subscription-proration_behavior) and it would either Invoice them immediately or not (again, YOU choose this behavior).

rocky dome
#

Ok. As you said above

So if you set the Subscription Items to recurring (as I mentioned in a previous message here: #1059897318368870490 message) then the customer will be charged on January 10th for the 3 users (because they added the users on January 10th), and then they will be charged again on February 2nd for the 3 users (because that is the next due date on the next billing cycle for the Subscription that the Subscription Items were added to)

If I want they will be charged only on 2nd February not immediately I should not pass the behaviour always_invoice. CorrecT?

Stripe will charge prorated amount ton 2nd feb?

sonic thicket
#

So if you set the Subscription Items to recurring (as I mentioned in a previous message here: #1059897318368870490 message) then the customer will be charged on January 10th for the 3 users (because they added the users on January 10th), and then they will be charged again on February 2nd for the 3 users (because that is the next due date on the next billing cycle for the Subscription that the Subscription Items were added to)
Exactly!

#

If I want they will be charged only on 2nd February not immediately I should not pass the behaviour always_invoice. CorrecT?
Correct. You would set proration_behavior to none and they would be billed on 2nd February instead

#

Stripe will charge prorated amount ton 2nd feb?
Nope. Stripe will create a new charge for the next billing cycle

rocky dome
#

proration_behavior if I set always_invoice, it will charge immediately , Stripe would charge prorated amount for Jan 20 to Feb 2, and then they would pay the full amount for their plan and users on Feb 2?

#

do we need to pass anything so that stripe would charge prorated amount for Jan 20 to Feb 2

sonic thicket
#

proration_behavior if I set always_invoice, it will charge immediately , Stripe would charge prorated amount for Jan 20 to Feb 2, and then they would pay the full amount for their plan and users on Feb 2?
Yep! Exactly correct

rocky dome
#

do we need to pass anything etc so that stripe would charge prorated amount for Jan 20 to Feb 2

sonic thicket
#

You just need to pass proration_behavior= 'always_invoice' for this to happen

rocky dome
#

If we create totally new subscription for seats. Is it possible that it should charge for 20 jan to main flat rate subscription date.

sonic thicket
#

I don't understand. Can you rephrase the question?

rocky dome
#

I created one main subscription for monthly flat rate on jan2.

Instead of adding subscription items to same above subscription. I am going to create new subscription for seats.

User add seats on 20th January. I know the plan subscription is created on 2nd January,

Is there way while creating a second subscription it will only charge the prorated amount (20jan - feb2) and next amount will be when flat rate monthly subscription will be paid. ?

#

I know how to do when we are talking about one subscription with multiple items,

clever ingot
#

Hi there. Taking over here. Give me a bit to catch up

#

If you're creating 2 separate subscriptions then they aren't linked together. You'd need to use invoice items or coupons or something to change the amount of the first invoice

rocky dome
#

let says I have Plan A and user is subscribed for it on January 2. And paid 130$. Hence the next billing cycle is Feb2.

They want to add 5 users on 20th of January. We are going to create one more subscription with quantity 5. We want we charge them prorated amount from 20 jan to feb 2.

clever ingot
#

Yes

rocky dome
#

How the second subscription only charge the prorated amount?

#

Both subscription are independent

clever ingot
#

What's the fee?

#

If it's a flat monthly fee per seat it will prorate

rocky dome
#

The main subscription is 130$ which is subscribed on jan 2.

Second subscription is 5 users: 79 X 5

#

but we want it will charge the prorated amount second subscription is created on 20 jan

clever ingot
#

If you pass billing cycle anchor it will prorate the 79x5 amount and only charge you for jan 20-feb 2

rocky dome
#

first subscription is created on jan 2 and next cycle is on feb 2

#

what will be the billing cycle anchor?

#

the next billing date of first subscription?

clever ingot
#

I'm talking about your second subscription. So if you want to charge a prorated amount from jan 20-feb 2, you would start subscription on jan 20, but set the billing cycle anchor to feb 2 so that the first invoice is prorated and future invoices charge the full 79x5 amount

rocky dome
#

Ok, the future invoice will be for second subscription is march 2?

clever ingot
#

Well it would charge on Feb 2, Mar 2, April 2, etc

#

For full amount

rocky dome
#

ok, so it will charge on jan 20 prorated amount and then feb 2 , mar 2 and so on

clever ingot
#

yeah

rocky dome
#

One more thing, A subscription can have multiple subscription items. We can have some input form where user enter number of seats they want to buy.

And when they click on next, Can we have some stripe payment form that shows the existing card or can add new details to pay for that subscription item?

And It will create a new subscription item and attach to the main subscription.

clever ingot
#

Am confused. You want to use a separate payment method just for one subscription item?

#

Why not charge everything to same card when processing intial subscription payment?

rocky dome
#

Ok lets keep the same card. But some times user want to update or pay with different.

#

User is subscribed to monthly flat rate. And sub is created in stripe.

Inside our platform we can provide a form where we can ask number of seats to buy
user enter 10
we want user can pay and subscription item will be attached to the main subsciption.

desert linden
#

Hey codename_duchess has to step out but I can help. Catching up now...

rocky dome
#

Sure

desert linden
#

That doc mostly shows swapping out one price for another, but you can also change quantities or add entirely new items through that update call

rocky dome
#

I dont find to attach an item to existing subscription? I mean subscription of 130$ monthly is already created.

I want to add new item of 10 users of 80$ of each per month

desert linden
#

I'm not clear on your question. So you already have a subscription for $130 a month, do you want the $80 to be added to that subscription and have the user be charged $210 once every month? Or do you want an entirely new subscription so that the user gets charged the same amount but in two separate charges?

rocky dome
#

I want one subscription that charge 130$ per month
and in same subscription I want to add 5 seats and each seat cost is 80$

desert linden
#

So one recurring charge of $210 every month on the same subscription object in Stripe?

#

In that case, the upgrade doc that I sent you should work here

rocky dome
#

Ok. One last thing -- if subscription has multiple items.

On billing portal it only shows cancel plan option.... not the update plan ?

As we have 3 plans.

#

Is it true?

#

When a subscription wont have any item it shows plan to update

desert linden
#

Looks like you are right unfortunately. They can only update quantities in the customer portal if the subscription is only for one product

rocky dome
#

but why they wont allow me to update plan from 130$ to 500$ plan. Because that subscription has multiple items?

desert linden
#

Yeah, the customer portal would allow you to update the quantity if it was the only product in the subscription. I am trying to think of whether there is a way for you to be able to have multiple product subscriptions and use the customer portal. I will get back to you with what I can find.

rocky dome
#

sure

#

When I delete items from subscription and keep only 130$ plan. Then portal allows me to update the plan

#

Basically we have products this way

  1. Starter Plan (130$ per month) and Starter Seat Plan (80$ per month)
  2. Power Plan (500$ per month) and Power Seat plan (100$ per month)

If user subscribe for Starter Plan (130$ per month), he will buy seats as per Starter Seat Plan (80$ per month)

Let say user subscribe for Starter Plan (130$ per month) and new subscription is created.
After few days they want to add 5 seats. Hence 80 x5

Now they want to upgrade to power

desert linden
#

Gotcha. Unfortunately it looks like our customer portal does not support the ability to do this. You would have to write your own custom page to allow them to change their subscription quantities like this. Or you would need to break each product out in to its own subscription. Unfortunately that would mean multiple separate charges to the user, so you might get situations where one of the charges succeeds and the other one fails.

rocky dome
#

OK. If we keep 2 plans but one product for seats. Will that work?

sonic thicket
#

@rocky dome I would recommend building a prototype of this integration, as a lot of these questions are easy to find the answer to once you actually start working on it.

I went back through the thread and it looks like you asked Pompey a lot of the same questions you asked me, so please try to hack around with a prototype for a bit to unblock yourself.

rocky dome
#

I agree with you and get answers to my concerns. What I asked last is different thing that is blocking me

#

My only last concern is there way to upgrade a subscription from portal if subscription has multiple items.