#b33fb0n3_docs

1 messages ยท Page 1 of 1 (latest)

neat vesselBOT
#

๐Ÿ‘‹ 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/1402945915072811041

๐Ÿ“ 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.

cursive oar
#

hi there!

ember harbor
#

hey ๐Ÿ™‚

cursive oar
#

for what do you need help specifically? creating the Subscription? reporting usage? something else?

ember harbor
#

The overview about it. Like I would like to bill my clients based on usage. I am currently working on a backend. Right now every signed in person can just use it. However, they should pay based on their requests.

So currently for me its clear to have:

  1. A product as subscription
  2. The counter

So I know what I need, but I dont know the overall view on how to integrate. There are a lot of pages inside the docs, but no template or similar, where I can look into code. Code is here the important part for me.

I would also like to provide my customer a "free usage". Like: the first X events are free. I also dont know how to do that

I would also like to use payment element inside my integration later. Normally I just handle that with payment intents. I assume that does not work here as its a subscription, right?

cursive oar
ember harbor
# cursive oar have your ead this doc? it should be a good starting point: <https://docs.stripe...

Ah thanks, yea, thats the overview I was looking for.

What do you think about the following points:

  • I would also like to provide my customer a "free usage". Like: the first X events are free. I also dont know how to do that
  • I would also like to use payment element inside my integration later. Normally I just handle that with payment intents. I assume that does not work here as its a subscription, right?
cursive oar
#

I would also like to use payment element inside my integration later. Normally I just handle that with payment intents. I assume that does not work here as its a subscription, right?
it would be very similar. instead of directly creating a PaymentIntent, use the PaymentIntent that is created by the Subscription.

#

so when creating the Subscription, add expand: ['latest_invoice.confirmation_secret'], and then use the client secret to mount the Payment Element.

ember harbor
#

My customer can create multiple tokens. With each token they can make request against the API. All of the tokens count towards the user, but I assume it would be great for him to see the counts for each token on his one billing. How can I do that?

ember harbor
cursive oar
#

My customer can create multiple tokens. With each token they can make request against the API. All of the tokens count towards the user, but I assume it would be great for him to see the counts for each token on his one billing. How can I do that?
you want to retrive usage for a given customer? if so, the doc link I shared earlier has a section about this at the bottom of the page

#

and when do I create the subscription? Can I even create it without the user notice?
well, that's completely up to you. a common flow if to first create the subscription and collect a payment method. once that's done, give the customer access to your services.

ember harbor
cursive oar
#

Then the subscription would have 3 prices, each price with its own meter.

ember harbor
cursive oar
ember harbor
neat vesselBOT