#mcbrent-metered-price
1 messages ยท Page 1 of 1 (latest)
Yes
Which field specifically?
Ah, so on the subscription itself not the Price object: https://stripe.com/docs/api/subscriptions/create#create_subscription-items-quantity
There's not no, needs to be an integer
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
You've confused me
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
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
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.
That can't be configured, nope
It displays the actual unit_amount value on the Price object(s)
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
Hi! I'm taking over ynnoj.
Okay
So you would like to add one extra line to be displayed in the Checkout Sessions page?
Service and Credit Card fees: $1.00
Yes
THe $1.00 will also be included in the subscription, meaning it will be also charged weekly
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.