#arpu_meter-howto
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/1296178216188510209
๐ 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.
- arpu_payment-element-eventdata, 5 days ago, 37 messages
I'd recommend reading our docs for usage-based billing: https://docs.stripe.com/billing/subscriptions/usage-based and following the guides
arpu_meter-howto
hi @atomic saddle THanks yes i use this and all works fine now i try to update the meter with ruby stripe gem, the question the docs at https://docs.stripe.com/billing/subscriptions/usage-based/recording-usage-api its says client.v2.billing.meter_events.create({
but stripe v13.0.0 ruby looks like have a new implemention?
We do have 2 separate versions yes. The v2 one offers higher rate limits. You don't have to use it but you can by following those docs you seem to have already found
yes and on this page there is the class MeterEventManager but we should use the Billing.MeterEventSession from https://github.com/stripe/stripe-ruby/releases/tag/v13.0.0 ?
would be good to see Add support for new Usage Billing APIs Billing.MeterEvent, Billing.MeterEventAdjustments, Billing.MeterEventSession, Billing.MeterEventStream and the new Events AP in this example on the page
Sorry I don't follow you. This is all brand new and you seem to just read the changelog and try to infer.
What exactly have you tried that is actively not working?
yes i want to use the new Billing.MeterEvent from stripe ruby 13.0.0 and not using older apis
Sure but that doc you already found has a section on that right? Is https://docs.stripe.com/billing/subscriptions/usage-based/recording-usage-api#high-throughput-ingestion-with-higher-rate-limits what you want and you didn't see it? Or is it not working?
i think this is the old way to do it
with stripe ruby < 13.0.0
maybe i am wrong but this is the idea
I don't think so, it literally says v2 in the example code
Can you try and clarify what isn't working? I worry you're more just guessing right now from a vague release note
but in the changelog there is the Billing.MeterEventSession
Gotcha, sorry we're talking a bit past each other. So yes you are asking what is this new thing documented nowhere. And my understand is that it's not yet available publicly but it's in our SDK ahead of the upcoming launch.
but yes look right client.v2.billing.meter_event_session.create is the same
so will go with this for now
๐
Thanks!
Sure thing!