#mike-mod_api

1 messages ¡ Page 1 of 1 (latest)

river spireBOT
#

👋 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.

gray stoneBOT
#

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.

neat estuary
#

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:

gray stoneBOT
neat estuary
#

Removing quantity property i get that window

solid marlin
#

Hi, what does 'if the revenue is $200, client A needs to pay $10' mean?

neat estuary
#

My goal is pass the spend of my user and create a checkout to the user pay

neat estuary
#

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.

solid marlin
neat estuary
#

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.

solid marlin
neat estuary
#

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