#tunisoft_metered-tiered-billing
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1261375916487999528
๐ Have more to share? Add details, code, screenshots, videos, etc. below.
As always, I find the solution minutes after asking for help. I picked "Round up to nearest complete package" which not what I want. I will try again with different price settings.
No luck so far. I'd like to display 10usd per 100 units. It's better than displaying 0.1 per unit to customers. Is there a way to do it?
Hi ๐
So what did you start with and what did you change?
I used a meter event like this
const meterEvent = await stripe.billing.meterEvents.create({
event_name,
payload: {
value: 1,
stripe_customer_id: subscription.id_customer,
},
})
But it looks like the wrong approach.
I'm currently trying this approach
Sorry I'm still not following. Can we take a step back?
What is the experience you are trying to design for your customers?
It's something like this.
The billing is based on usage. For every 100 form entries containing up to 10 fields, the form owner is billing 5usd. It increases with the number of fields.
I created them through the dashboard. Like this
I will try this https://docs.stripe.com/billing/subscriptions/usage-based-legacy/recording-usage
I hope it works
Sorry we focus on helping users integrate with Stripe APIs using code here. I recommend you create your prices through the API following this guide https://docs.stripe.com/billing/subscriptions/usage-based/implementation-guide?dashboard-or-api=api
Thank you