#mike-mod_api
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. Thank you for your patience!
âąď¸ We automatically close idle threads, which makes them read-only. Make sure you stick around to chat in realtime! If this thread is closed and you have another question you'll need to start a new thread.
đ 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/1215054877592391680
đ Have more to share? You can add more detail below, including code, screenshots, videos, etc.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- mike-mod_api, 23 hours ago, 24 messages
- mike-mod_api, 1 day ago, 22 messages
the checkout
In my understanding, by providing the usage value somewhere in this method, Stripe will know how much to charge the end user.
And its not in the quatity property because i receive this error:
Removing quantity property i get that window
Hi, what does 'if the revenue is $200, client A needs to pay $10' mean?
My goal is pass the spend of my user and create a checkout to the user pay
Yes
Ok wait
I will explain
Our solution currently charges a monthly subscription fee for restaurants. However, we want to adopt a strategy of charging on a variable basis. During the month, the restaurant makes sales within this platform, with some restaurants selling a lot and others selling less. To create a fairer and more sustainable approach, we want to charge a variable monthly subscription fee based on the restaurant's revenue. In practice, we have this information about how much the restaurant is earning, but currently, our price is fixed for everyone and we want to change that. In this case, our client (the restaurant owner) needs to receive a bill corresponding to this variable amount.
We want to be able to provide a recurring monthly subscription, but I don't know how to inform Stripe about the user's usage during the one-month period so that Stripe can charge the customer.
I think you could use the tiered pricing: https://docs.stripe.com/products-prices/pricing-models?ui=stripe-hosted#tiered-pricing option here. You can track how much of the revenue equals to quantity for the pricing. For instance, in the case where you have a restaurant with 200$ revenue, you can count that as 2 quantity. At the end of the month, you can report the usage depending on the revenue.
I already knew that. The issue is that I wanted more low-level assistance, regarding how to report these values to Stripe to know how I can charge the user. For example, how can I inform Stripe that the restaurant made $200 in revenue? Can I do it during the checkout creation? Should I inform it via the API beforehand? These kinds of things.
You would need to track the revenue usage on your end, and then map that to the quantity. Like every 100$ == 1 quantity. Then, you can report the usage: https://docs.stripe.com/api/usage_records/create.
Hmmmm
That usage_Record can be separate by subscriptions or is separate by customer?
because 1 customer could have a lot restaurants and subscriptions
and maybe its not cool record a global usage withtout separate by subscriptions
OKK
I already see in the docs passed by you!!!
Its for subspscritions
Thanks!!
Its done here, thank you a lot