appcenter-reviews icon indicating copy to clipboard operation
appcenter-reviews copied to clipboard

Validate integer prices

Open cassidyjames opened this issue 6 years ago • 2 comments

The AppCenter client only supports prices in integer dollars (by design). However, some apps have non-integer prices: https://github.com/kjlaw89/archetype

AppCenter currently just takes the int and lops off the decimal, which is probably not what a developer would expect. We should validate this in the AppData at build time so the devs aren't setting unexpected prices.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

cassidyjames avatar Jun 28 '18 18:06 cassidyjames

Here is probably a good place for me to ask: Why whole integer dollars only? Why not just anything over a minimum of $1?

lewisgoddard avatar Jun 28 '18 20:06 lewisgoddard

@lewisgoddard mostly because of how the UI is designed (it's a lot nicer to say, "Install Foo for $3" than to always have to do "Install Foo for $3.00"). I'd be open to changing it, but right now AppCenter expects whole dollars by design, and Houston doesn't do anything to enforce that.

cassidyjames avatar Jun 28 '18 22:06 cassidyjames