gdx-pay icon indicating copy to clipboard operation
gdx-pay copied to clipboard

Store price to BigDecimal

Open henu opened this issue 1 year ago • 1 comments

How about storing price as BigDecimal? It's perfect type for price information, as you can avoid floating point rounding errors and have as many decimal places as you want.

I'm not an expert in developing Java libraries, so please suggest how to make this PR better!

I'm only able to test it with Android Google payments.

henu avatar Feb 12 '25 22:02 henu

Automatic tests found some problems. Now they are fixed, and waiting for new run...

henu avatar Feb 12 '25 23:02 henu