#.ubirajara

1 messages · Page 1 of 1 (latest)

azure vaporBOT
willow crescent
#

@deep vector Hello! I'm sorry but I don't understand what the question could mean and what a "variant by ViewUsage" could be

deep vector
#

I have several different products, some of them vary depending on the customer's use, to upgrade the subscription, I have to do it like this:

#

I have to sort by the most expensive, so I can deactivate it and add the new price

willow crescent
#

why would you sort anything instead of knowing which Product(s) are where and tracking all of that in your database? I'm sorry that's just a picture of code with a lot of business logic specific to your own.
What is your exact Stripe-related question?

deep vector
#

The SubscriptionItem object has some property which specifies the type? By "type" I mean whether this item varies depending on use or not

#

This "View Usage" on the screenshot

willow crescent
#

I understand but that's just a picture of the Dashboard though

#

you're the developer here, you create and control that Subscription, all its SubscriptionItems and their mapping to each Price and Product and their type

#

all of that you should fully know and have in your own database

azure vaporBOT