#mcbrent-metered-price

1 messages ยท Page 1 of 1 (latest)

zenith mulch
#

Hey, you mean for the Price object?

tame zealot
#

Yes

zenith mulch
#

Which field specifically?

tame zealot
#

The quantity field

#

The per unit value

zenith mulch
zenith mulch
#

You've confused me

tame zealot
#

Once second, I'll be right back and explain a clearer

#

Sorry

#

Because right now, I can't make a usage report with a decimal value. For example, 1.5 hours

#

Usage report for subscription

zenith mulch
#

I can't make a usage report with a decimal value
You can't, correct.

#

Maybe record/report usage in minutes instead?

#

Then you have a flat unit amount per minute

tame zealot
#

Yes, this is the one on the screenshot. But it looks too long on the session checkout. Is there a way I could round it off without changing the actual value being charged to user?

Let's say the checkout form will just show 0.19
instead of 0.190483333. But the actual value being charge is the longer one.

zenith mulch
#

That can't be configured, nope

#

It displays the actual unit_amount value on the Price object(s)

tame zealot
#

Okay, thanks for pointing that out. Last question, is there I way to alter the stripe checkout form? My team is planning to add a breakdown of the minute priced being charge.

#

Aside from the tax

#

Something like this:
Per unit: $ 0.1904
Service and Credit Card fees: $1.00

peak wraith
#

Hi! I'm taking over ynnoj.

tame zealot
#

Okay

peak wraith
#

So you would like to add one extra line to be displayed in the Checkout Sessions page?

Service and Credit Card fees: $1.00

tame zealot
#

Yes

#

THe $1.00 will also be included in the subscription, meaning it will be also charged weekly

peak wraith
#

When you create a Checkout Session you can pass multiple line_items. So you could pass 2 prices. And both will be displayed on the Checkout page.

tame zealot
#

Okay, I get now what you mean ๐Ÿ™‚

#

Thank you @peak wraith and @zenith mulch