#rob_unexpected
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/1240595042830385193
π Have more to share? Add more details, code, screenshots, videos, etc. below.
sub_1PGzCsGcuLQxtiNKSvW27tZO
taking a look
if you pass in 0 as the quantity the flat fee won't apply
it applies starting with 1
How do you mean this? In the first invoice, I still see this, when the quantity is 0?
I do see that part of the docs now, dang I overlooked that part (even read the paragraph above about an hour ago π© )
We also don't want to bill them 0, we want them to pay e.g. 20$ flat fee if they sign up halfway the month
I don't see it on the invoice in_1PGzCsGcuLQxtiNKhWOwfsQ9 for the subscription you shared
would you mind sharing the subscription ID?
sub_1PGzCsGcuLQxtiNKSvW27tZO`. it is the one I shared, but I am referring to the upcoming invoice. Since when you create the subscription, you are not charged as it's pay per use.
oh yes I see π€¦ sorry my bad, discord is super busy this morning
fwiw I don't think flat fees are prorated
I couldn't find in the public doc something that refers to that
Ahh ok, that's what I was trying to dig up from the docs, but it's hard to find
but if you need to prorate I think a better solution would be to add another price to your subscription
Yes me too, but I expected Stripe to handle it, because so far it has been pretty magnificent so far in handling all our cases
I'm listening π
so basically instead of adding flat fee, you can add another price with the flat fee
this way you would have the proration applied
The idea is we want small customers just to pay a certain fee, and only when they go above that limit, pay per use
That would mean that we need to conditionally add that flat fee based on the tier reached, right?
Initially I wanted to prevent that because it would mean dynamically/conditionally adjusting invoices.
yes I understand
let me take a minute to think about your use case
I will get back to you in a second
No sweat, this is already great info you gave me! I'm really thankful for you help so far.
I was thinking of maybe making a cron that checks the upcoming invoices of subscriptions created in the last month, and add a coupon/discount for example, based on the days of the first billing cycle?
Because this problem only occurs on the first partial month, otherwise the setup works really well and does exactly what we need.
why not use the tiered pricing then https://docs.stripe.com/products-prices/pricing-models#usage-based-pricing ?
Because if you don't use the product, we still want to charge a flat fee/base fee to cover infrastructure costs
But if you do, you pay-per-use
Based on the 4000 unit treshold
you can charge the flat fee based on the x number of usage before the 40
We use tiered pricing btw, but volume based, do you mean graduated?
I'm still here btw
yes I meant graduated
so the first would sum up to the 40$ and then you do whatever in the next tier
actually I'm a bit confused with your screenshot right now
what you have there is basically anything less than 4000 units they pay 40$ regardless
and then they pay 0.01 after that right?
yes
ok now I see
so basically what I suggested first applies here
having 2 prices
you would have 1 price for the 40$
and the other price would start charging after the 4000 units
Ahhhh
yes I got it now!
That's really smart.
Dang, why didn't I think of that. This is amazing!
That would also nicely prorate
I misunderstood this and that's what drove me on a different direction
exactly
Yeah I'm a non-native english speaker, so that might have something to do with it :).
Still we figured it out π
I was just drawning with lots of messages
we had 14 active threads at the time of that message
yeah that's quite a lot to handle
anyways, I'm glad I was able to help you out
I'm as well
this is why we love to do this job, is to unblock people and help them figure out stuff and have a fresh perspective on the issue at hand
let me know if you need any more help
I might not be around but my colleagues will be here and you'll be in good hands
I think this is good now, I'm off to the 'mines' (slang for coding a lot).
This unblocked me 100% π
Thanks again and have a great day
you too