#noegip-pricing-metered
1 messages ยท Page 1 of 1 (latest)
thanks
I noticed volume pricing starts with 1 and graduated pricing starts with 0 which is also kinda confusing.
but thats unrelated ๐
isn't this what you want?
doing exactly that, but the output on my checkout page is always 0
What does that mean. What checkout page? What does it do, which API does it call, etc.
nah see you don't have the same thing I did since you didn't put the flat fee for the second row
Try with that change and then show me an example Checkout Session like cs_test_123 and I can look
sure
just a sec
cs_test_b1FN5QSJX4sghbAyfYuH5hMXtFAQ4P1lNj6TWfhq1zQQVX0c06PANermoz
so its correct in the sense that if you hit 11+ you have to pay the flat fee too
but still it's 0
its probably something super stupid, but its already taking me like half my day ๐
looking
more likely a bug on our end honestly ๐
oh duh I know
it's metered billing. So it never charges upfront
you report usage throughout the month and we sum it all at the end
so here we tell you the pricing upfront but there's no charge
huhmz
ok, but that doesn't really make sense for the flat fee right?
is there a way to do both?
it's weird that a customer has to "pay 0"
I mean it makes sense for a flat fee really
it just means if they have 0, 1 or up to 10 as usage then pay 10โฌ
if they have 11 they pay 11โฌ, etc.
thats what i am expecting
You can't charge some parts upfront and other parts later.
In that case you would need separate Prices. One for the base fee for 10โฌ, charged upfront and then one for the metered usage
i thought the subscription is always charged upfront, wel... that communicated at least during checkout
i still dont understand why a customer has to pay 0 initially
its weird UX
Hello! I'm taking over and catching up...
With metered billing the customer is charged for what they used during the previous period. The first period of a metered Subscription has no usage to charge for, so the first Invoice is for $0 unless you add a non-metered line item to it.
You can use add_invoice_items when creating the Subscription to add a one-time Price to the first Invoice, for example: https://stripe.com/docs/api/subscriptions/create#create_subscription-add_invoice_items
right, so i would have to remove the "flat fee" than I suppose and add another price and add this to the subscription
If the current "flat fee" you're using is metered, that's correct, yep.