#tp-fractional-metering
1 messages · Page 1 of 1 (latest)
I think this is supported, but it would have to be handled differently than you're thinking about it. Metered products have what is called a Usage Record (https://stripe.com/docs/api/usage_records/create) which is used to track usage. In the example you gave above, you could just include a Price/Product that costs $0.01. When you create the Usage Record you would just update the quantity to 5823
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
got it, ok, so the 'unit' would essentially be '1 cent' and we would then essentially denominate our usage metric in 'cents'?
Exactly!
ok got it, we'll try that
one other question — we have a base saas fee ($100 / month) and then this CO2e offset purchase separately. For companies that purchase both products, will these come through as one charge, or two charges (e.g. one charge for $100 and another for the offsets, lets say $34, or a combined $134 charge?)
We would prefer they come through as two separate charges
It depends on how you set it up. You can process the payments separate or together. It all depends on your integration
We would prefer they come through as two separate charges
When you say separate charges, what do you mean? You want them to appear as separate transactions on the customer's statement? Or you simply want to be able to delineate the 2 purchases in your reporting? Need more details about what is/isn't important
we would like 2 separate transactions on the customer's statement
one transaction at $100 / month for the saas subscription, another separate charge for (tons * $100) / month.
So you would simply create 2 separate Subscriptions. 1 for the metered product and 1 for the statically-priced product
does that mean two separate checkout flows? that would be ok, but would be ideal if our customers could enter their billing info once for both subscriptions