#zeke_best-practices

1 messages ¡ Page 1 of 1 (latest)

late crestBOT
#

👋 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/1343456024752820246

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

fast folio
#

Hi there, can you share with me the subscription ID?

novel rock
#

The subscription item ID?!

#

si_RpTMuNe3buOxyP

#

Oh wait this guy!?

#

sub_1QvoPmIYhOvByvWr4u72XjIw

fast folio
#

Thanks, let me take a look

novel rock
#

I belive that is the doc I was follwing? no?

#

I also would not like to have an overage!

#

its feels morally un-right to charge people like that too me!!

fast folio
#

Maybe I don't have the full details. Can you tell me what kind of billing model that you want build? To help me better understand, can you walk me through with a concrete example?

novel rock
#

yes sir

#

So I am building a SaaS based application. The users are buying tiers which just have Tokens from a LLM. So for say the starter tier has 50k Tokens and Costs $9.99. Currently I have setup a checkout page for this and all of it works fine. My problem is when Im re-directed back to my application I don't think there is any correlation between my authenticated account via clerk and convex and the starter Tier I just bought. I tried adding a badge to My UserItem (which is just a designed input which showcases my account) that shows which tier the user has and when I got re-directed back I still had the free tier even though I just bought the starter tier.

fast folio
#

is it about knowing whether your customer has the feature access to your service (i.e., the tokens) ?