#rohit-subscription-quantity

1 messages · Page 1 of 1 (latest)

halcyon gullBOT
elder quest
#

rohit-subscription-quantity

#

hey @little helm! Yes that's the right way to increase the quantity

little helm
#

So it will charge for 3. Correct?

elder quest
little helm
#

Or is there a better way so that there will be no refund just charge for 3 more?

elder quest
#

no there isn't a better way, that's the way to do it. Read through the doc I shared and it explains it all

little helm
#

User subscribed to monthly plan on jan 2.

Adding 3 seats on 20 jan
Adding 3 more 25 jan.

So on 25 jan, the above call is fine with 6 quantity/

elder quest
#

I mean no

#

They subscribe on JAn 2, so you have quantity 1. On Jan 20 you move to quantity 4 right?

little helm
#

We have separate product for subscriptions and purchasing seats .

  1. User subscribed to monthly plan. Subscription is created.
  2. When user add 3 seats. I will add new item to that subscription with quantity 3. Correct?
  3. When user add 3 more, I will update the item of the subscription with quantity 6.
elder quest
#

ah that's why, so yes correct

little helm
#

But on point 3, as you said it will refund and then charge for 6

#

No way to just add 3 more?

#

Or it calculate as we passing proration_behavior

elder quest
#

it doesn't really "refund" it calculates a credit owed and an amount owed. It's mostly the same as charging for the extra 3. Just try it in Test mode

little helm
#

Ok. When billing cycle renew it charges for
monthly plan price + price of 6 seats

#

correcT?

elder quest
#

yes

little helm
#

Let's say before renewal user want to decrease 2 seats.

Should I use same subscription update call and set the quantity to 4 from 6. OR use the subscription item api call Stripe::SubscriptionItem.update( )

elder quest
#

it does the same exact thing!

little helm
#

I can use either

#

correct?

#

but the quantity this time will be 4 from 6

elder quest
#

yes both work and yes you change the quantity (up or down) to represent what you want the quantity to be

little helm
#

Does the above API call send invoice to user? I am unable to test in test mode. If user buy 3 seats..

elder quest
#

if you pass proration_behavior: 'always_invoice' then yes it would invoice them immediately (and send an Invoice assuming you have collection_method: 'send_invoice')

little helm
#

collection_method -- need to pass in the api call?

cold hound
#

Hello! I'm taking over and catching up...

little helm
#

If I am doing this

Stripe::SubscriptionItem.create({
subscription: 'xx',
price: 'xx',
quantity: 5,
proration_behavior: 'always_invoice'
})

Will it send invoice? or need to pas here anything?

cold hound
little helm
#

let me check

#

Before doing

Stripe::SubscriptionItem.create({
subscription: 'xx',
price: 'xx',
quantity: 5,
proration_behavior: 'always_invoice'
})

I want to check how much I will be charged today. The subscription is created on 2 jan. But I am going to add new item with 5 quantity,

cold hound
little helm
#

that is to retrieve... But I have not added the new item yet. I wan to see the prorated amount that is going to charge today and will be next date and amount going to charge

cold hound
#

Right, you're retrieving an upcoming Invoice that doesn't exist yet using the options you provide. It's a preview you can see before making the actual change.