#rob_unexpected

1 messages Β· Page 1 of 1 (latest)

novel roostBOT
#

πŸ‘‹ 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.

jade siren
#

πŸ‘‹ happy to help

#

would you mind sharing the subscription ID in question?

hoary heart
#

sub_1PGzCsGcuLQxtiNKSvW27tZO

hoary heart
#

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

jade siren
#

I don't see it on the invoice in_1PGzCsGcuLQxtiNKhWOwfsQ9 for the subscription you shared

#

would you mind sharing the subscription ID?

hoary heart
#

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.

jade siren
#

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

hoary heart
#

Ahh ok, that's what I was trying to dig up from the docs, but it's hard to find

jade siren
#

but if you need to prorate I think a better solution would be to add another price to your subscription

hoary heart
#

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

jade siren
#

so basically instead of adding flat fee, you can add another price with the flat fee

#

this way you would have the proration applied

hoary heart
#

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.

jade siren
#

yes I understand

#

let me take a minute to think about your use case

#

I will get back to you in a second

hoary heart
#

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?

novel roostBOT
hoary heart
#

Because this problem only occurs on the first partial month, otherwise the setup works really well and does exactly what we need.

jade siren
hoary heart
#

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

jade siren
#

you can charge the flat fee based on the x number of usage before the 40

hoary heart
#

We use tiered pricing btw, but volume based, do you mean graduated?

novel roostBOT
jade siren
#

I'm still here btw

hoary heart
#

This is the setup right now

jade siren
#

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?

hoary heart
#

yes

jade siren
#

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

hoary heart
#

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

jade siren
hoary heart
#

Yeah I'm a non-native english speaker, so that might have something to do with it :).

jade siren
#

I myself am not a native english speaker either

#

but that's not the issue

hoary heart
#

Still we figured it out πŸ˜†

jade siren
#

I was just drawning with lots of messages

#

we had 14 active threads at the time of that message

hoary heart
#

yeah that's quite a lot to handle

jade siren
#

anyways, I'm glad I was able to help you out

hoary heart
#

I'm as well

jade siren
#

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

hoary heart
#

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

jade siren
#

you too