question

desertdevil avatar image
desertdevil asked

Request for additional data about a purchase item

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)
iap
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Hi Desertdevil, Thank you for taking the time to send us your feedback. We will share it with the appropriate internal teams.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sujoy@Amazon avatar image
Sujoy@Amazon answered
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.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.