#Quartzic

1 messages · Page 1 of 1 (latest)

mossy joltBOT
sonic flame
#

When the users set their own price, does the amount remain the same for the future cycle, or will it change?

olive dome
#

It may change

#

So, given that there may be many different types of transactions, I was thinking that it might make more sense to have users add cards (currently I've set up a button to create checkout sessions in setup mode), and we'll keep track of their balance in our app and bill it once it hits a certain threshold or after a certain amount of time.

#

But I wanted to make sure that there was no existing stripe functionality to do this where I can send an event each time a transaction occurs and have Stripe do the math for me?

sonic flame
#

we'll keep track of their balance in our app and bill it once it hits a certain threshold or after a certain amount of time.
If you're referring to this as whether there's any such kind of existing functionality in Stripe, then no.

#

Stripe billing is always running on fixed period

olive dome
#

This is what led me to think there might be some such functionality

sonic flame
#

Oh wait! Let me think about this

#

Have you given it a try whether this will fit your case?

olive dome
#

One issue I foresee with using subscriptions / billing / metered usage / usage thresholds is that to support the "pay-what-you-want-per-unit" model, we would have to programmatically create a price for each user when they choose

#

And if they change their price, I guess we'd have to cancel their old subscription and start them on a new one with the new price?

#

I also see that I can issue customers credit balances

sonic flame
olive dome
#

Would that affect everybody using that same price?

sonic flame
#

For every different amount, a new Price (object) should be set, so it won't affect existing Prices

olive dome
#

So, I could have a large set of prices — one at $1.50/unit, one at $2/unit, etc — and switch people's subscriptions between them? And then I just report usage as typical to Stripe through the metered usage billing solution

sonic flame
#

Yup!

olive dome
#

Perfect. I think that answers my questions for now! Thanks again for the help :)