#taras-neroznak_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/1300453133834653807
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi there ๐
I'm not sure I understand. Metered billing is for when you allow your customers to use a product and then charge them later based on usage. If you want to offer your customers a fixed amount of usage, I don't think metered billing is correct.
I think the better approach would be to track their credits/usage on your end, and process a one-off Invoice to charge them again if they need more credits before the typical Subscription renewal.
Therefore, it is impossible to stop the automatic acquisition of additional credits, and the only way to implement this is to build a tracking system yourself. Thank you.
You can also provide recommendations on the following question - What is the recommended method to allow users to buy extra credits on top of their subscription using Stripe?
You'd probably process a one-time payment. Do you need an Invoice to go along with that payment? If so, you'd probably create a one-time Invoice:
https://docs.stripe.com/invoicing/integration/quickstart
You can use the subscription parameter when creating the Invoice to associate it with the customer's existing Subscription, if that's beneficial to your scenario:
https://docs.stripe.com/api/invoices/create#create_invoice-subscription
Thanks
Another question came to mind, is the product metadata a good place to store the number of credits per plan, eg "BASE" plan = 1000 credits, "PRO" = 5000, and these values โโwill be stored in the metadata? Then, with each request, we will extract this value from the metadata.