I would like to see support added to the com.amazon.inapp.purchasing.Item class for the following: 1) A method to retrieve the ISO 4217 Alphabetic country code associated with the localized price of the item. Being able to strip the currency symbol from the getPrice() string is not enough because one cannot differentiate between items purchased in local currencies that don't have a unique symbol (for example, Canadian dollars and US dollars both report $). Refer to
http://www.iso.org/iso/currency_codes 2) A method to retrieve the numeric value of the price. This would just be a convenience method so one doesn't have to strip the value out of the string returned by getPrice(). In summary, I like to have: getCurrencyCode() which returns USD, CAD, EUR, etc and getPriceNumeric() which returns the numeric value of the price as a float (e.g., 1.99, 2.99, etc)
Hi DesertDevil, Hope everything is fine in desert :) We need to know the use case of the proposed API. Why do you want to know the currency code and the numeric value of the price? What are you trying to do? Is it for analytic? is the sale report on DevPortal not sufficient? Thanks.