#sylar_best-practices
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1336395995365249144
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
-_-
lolz
Hi! Let me see what I can find for you.
In the middle of subscription period client should be able to add (extend) some products to the current subscription.
When do they pay for this? At time of addition, or as part of tthe regular billing cycle?
Ahhh ok. So I see you're building a bike rental app; unless you're doing really really long term rentals, I'm not sure the Subscription model is quite right?
Hey.
They should pay calculated extra.
For example we have monthly subscription (which is ~30 days) and client adds a product on 15th day. So it should be product.monthly_cost / 2 payment (extra)
The trick is that once user rents a bike (with some equipment) it starts kinda endless subsription (untill he returns the products)
Interesting.
Ahaha, kinda pain in the ass tbh ๐
It's an interesting puzzle.
I gotta jet but my colleague @pulsar geyser has got you. ๐
Ok, thanks
there are a lot of open threads so i might be a little slow! but i'm catching up now
Thats alright, take ur time
ok, so theoretically i think your first question seems totally doable. subscriptions can be modified in the middle of a period and we have a prorations feature that handles the changess to cost
https://docs.stripe.com/api/subscriptions/update
We also prorate when you make quantity changes.
is that what you're looking for, or am i misunderstanding?
Does this method only updates existing items in the subscription list or I can add a new one in the running subscription using this method?
it's been a bit since i've tested it but i think you can do both, let me verify
actually do you have a test environment handy? i'm juggling multiple threads atm, but i think if you call this and just pass in the items property with the existing items.id and a new item in the array it should work
Thank u very much!
And the last thing:
What about using the same Subscription API for n-days rental?
ooo yes i forgot about that. i might need to circle back to you as i'm still juggling multiple threads ๐ i appreciate your patience!
thanks!
ok i'm back!
working on groking your business requirements here
i've never done any testing on daily billing periods tbh, do you have a working example of that?
ok yes i just had to sanity check that we supported that ๐
ok. so your question is....
charge for daily usage, but only bill / charge on a non-daily (e.g. weekly) period?
if so i don't think we have great OOTB support for that
you could do something very complicated using billing meters and log daily usage to a meter, then charge that on whatever period you want. but then you'd need to be managing / updating the meters on your end
I mean if there a custom subscription period? Like initiate 5-day subscription with no subscription renews?
Hello
Give me a moment to catch up here.
It is a bit information heavy thread, can you give me a quick summary of your usecase?
Can you give me an example of your usecase with example amounts to make sure we're on the same page?
For example client rents a bike for 5 days. I want to use Subscription API as well for this type of period. Am I able to do that? The client will be one-time charged with no subscription prolongation