#mathankumar-price

1 messages · Page 1 of 1 (latest)

karmic silo
unreal hamlet
#

thanks but if users not used that first 10 but amount would collected for that 10 in month end, after 10 that is usage based

#

?

#

in graduated and volume based there are totally usage based but how can set base amount for first 10 quantities?

karmic silo
#

Hey, sorry I am swinging around a few places. Will respond in this thread

unreal hamlet
#

okk no problem😅 , any suggestion? for thta scenerio?

karmic silo
#

I am trying to grasp your pricing model. So you want set fixed price for first 10 quantity but set usage based for 10 -> infinity?

#

What does that mean in example?

unreal hamlet
#

for example, my plan has 10 project limit and total price for that 10 project is 100$ if thay used 10 or 1,2,3....10. but after that 10 we charge for every project per 50$ or something this is actual scenerio...!

karmic silo
#

So you will still use usaged based model eventually, but need to somehow fix the price to $100 if report is even 1 or 2?

unreal hamlet
#

yes thats right only for first 10

#

after that 10 to any we need to do usage based !

karmic silo
#

How about using usage based as normal, 2 tier (<10 and >= 10) For first tier set the price = 0, and add a flat fee = 100$?

unreal hamlet
#

awsome...! for >=10 flat fees would be? empty?

#

'tiers' => [
['unit_amount' => 0, 'up_to' => 10, 'flat_amount' => 10000],
['unit_amount' => 100, 'up_to' => 'inf'],
],

#

is right...?

karmic silo
#

Yep I think so. Please test out in Test mode

unreal hamlet
#

Yes its working thanks...🥳

karmic silo
#

Awesome! Happy that helped!

unreal hamlet
#

Yes

#

can i do this in plan also?, i did this scenerio in price now

#

$stripe->prices->create(
[
'nickname' => 'test price',
'tiers' => [
['unit_amount' => 0, 'up_to' => 10, 'flat_amount' => 10000],
['unit_amount' => 100, 'up_to' => 'inf'],
],
'currency' => 'usd',
'recurring' => ['interval' => 'month', 'usage_type' => 'metered'],
'product' => 'prod_M3oMQZEqzr2Vkd',
'tiers_mode' => 'graduated',
'billing_scheme' => 'tiered',
'expand' => ['tiers'],
]
);
replacing a price to plan will work?? or any suggestion?

karmic silo