#napolean-solo_api

1 messages · Page 1 of 1 (latest)

weak vineBOT
#

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

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

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.

humble idol
covert rampart
#

Yes

#

So how do I handle the subscription in this case?

#

Let’s say they add $100 in the balance and now what should I do next? Is there some form of subscription created?

humble idol
#

Whoops thought that guide showed that but I now see it doesn't. No a subscription isn't automatically created, a surprising amount of this flow isn't automatically triggered by other pieces at the moment.
I think the easiest way to do this with a subscription would be to create a subscription with a usage-based price and also a one-time invoice item for your initial credit grant amount. That would make the subscription generate a first invoice whose only cost is that credit grant fee and would mean that the subscription's status is coupled with that initial amount being paid.
The other way to do this would be to create a one-off invoice or event payment intent that is separate from the subscription and create the credit grant when that completes.

#

Is that helpful or more or less reiterating what you already know?

covert rampart
#

But I have multiple usage based metrics/products

humble idol
#

As in you want a type of credit for each? Or something else?

covert rampart
#

No i mean basically user will add $100 grant and then I’ll charge users for each metric they utilise until they finish the credit

#

So each metrics have different unit cost

humble idol
#

So typically how that would work is you charge $100 with one of the two methods mentioned and have a subscription with multiple different items each tied to a metered price. The prices define how usage translates to a dollar amount so you would just report usage as normal and at the end of the month Stripe calculates the total to charge the user based on your meter/price settings and then takes that out of the user's credit.

covert rampart
#

Ah so you mean there’s a base subscription with all other products added into it as line item you mean?

humble idol
#

Yes, you can create subscriptions with up to 20 prices