#mariosantos - proration

1 messages ยท Page 1 of 1 (latest)

glacial knotBOT
opaque island
#

๐Ÿ‘‹ happy to help

steady lintel
#

hello

opaque island
#

you'd have to handle the "count" on your end

#

this is a custom logic that our Billing products don't support unfortunately

steady lintel
opaque island
#

you want a proration for the number of "points" used instead of number of days?

steady lintel
#

Yes

#

The Stripe support it?

opaque island
#

not really, Stripe only prorates based on the number of days

steady lintel
#

hm...

#

Exist some flow that I can do in my code that it works?

#

I want use Stripe because have a great dashboard and automatization.

opaque island
#

in that case why not just add a price of the "points" and pass in the quantity

#

e.g. instead of paying a subscription of $50
you can have a price of $1 and have 50 items of that in the subscription.

#

and upon upgrade/downgrade you can change the quantity to be the exact quantity you want

steady lintel
#

I think it can works

#

But if the user downgrade the price, don't the prorates send to the user the value that it already used?

#

Can the subscription item help in this case? Or is it used to other case?

violet spoke
#

Happy to help though I am not sure I understand your use case properly. Can you give a specific example of what you want one of these prorations to look like? Like if they downgrade from a $50 to a $30 price, what do you want to happen?

steady lintel
#

Ok. I can do

#

Plan 1

  • Price: 30$
  • Documents to upload 10

Plan 2

  • Price: 50$
  • Documents to upload 20

User subscribed the plan 1 and pay 30$. After it uploads 10 documents, and in the same cycle upgrade to Plan 2 and pay 50$. It uploads more 10 documents. In this moment if it downgrade the plan the stripe will refund 50$. I need that refund just 25$ (value that don't used yet).

#

Instead create prorates based on the days. I need create prorates based on number of documents uploaded

#

I know it can do using metered price, but in this case the charge is made on end of cycle. I need create charge in start of cycle

violet spoke
#

Gotcha, thank you for the example. So for this I think one straightforward way to do this would to be to add an extra invoice for $25 on the invoice and then do the downgrade without proration.

#

Our prorations are time based, so to simulate the credits you'd basically have to say they used half their credits so backdate the upgrade date to midway through the month. That would get the right proration amount, but wouldn't work if say your user uses half of their credits on day one of the month and then tries to downgrade

steady lintel
#

I have some questions about metered billing too.

  • If the person uses a virtual card, and cancel it. How the Stripe charge in end of cycle?
  • If the person don't have enought credits to billing. How it works?
violet spoke
#

In that case we would try to charge the card on file, I am guessing that that charge would fail so you would need to reach out to the user about collecting new payment method info

#

For the second one, are you talking about them not having enough funds in their bank account? In that case that would also be a decline

steady lintel
#

Then the user don't will charge in nothing in this case, sure?

violet spoke
#

mariosantos - proration

steady lintel
#

I'm guessing in this first case. If the person wanna use the system without pay, just register 2 payments method that it can cancel before end cycle.

steady lintel
#

What is the purpose of subscription items? Can I would use it to manage how many documents the user upload?

violet spoke
#

Subscription items are the recurring charges on the subscription. So for example the Price that tells you how many uploads they get would be a subscription item

#

You can use them to check server-side how many credits they are paying for but I don't think you would be able to use them as a way to track how many credits have been used

violet spoke
# steady lintel Then the user don't will charge in nothing in this case, sure?

Apologies I missed this. Correct, the user would not have been charged but you can still try to recover the payment for that invoice. There are a lot of options for how you can react to a failed payment here. As mentioned, you can reach out and ask them to put a new method on file, you can also set up a retry schedule in your Stripe settings so that we retry the payment a few times over some period of time if it didn't work initially

steady lintel
#

I will try handle in my backend

#

I will private the user to downgrade plan, and instead it need cancel the plan

zealous glade
#

Hi ๐Ÿ‘‹

#

Catching up here, give me a minute