#tunisoft_metered-tiered-billing

1 messages ยท Page 1 of 1 (latest)

mortal geyserBOT
#

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

dreamy crane
#

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?

prisma cove
#

Hi ๐Ÿ‘‹

So what did you start with and what did you change?

dreamy crane
#

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

Learn how to record and report usage for your customers.

prisma cove
#

Sorry I'm still not following. Can we take a step back?

What is the experience you are trying to design for your customers?

dreamy crane
#

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.

prisma cove
#

Okay.

#

So let's start with your prices. How did you create them?

dreamy crane
#

I created them through the dashboard. Like this

prisma cove
dreamy crane
#

Thank you