question

rpahut avatar image
rpahut asked

Currency for an Items price

There is a formatted price, but how do I get the currency, code or symbol?
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.

1 Answer

WangChao@Amazon avatar image
WangChao@Amazon answered
Hello, Our In-App Purchasing SDK does not include a currency code via the price product of either our ItemData nor Product classes. In order to determine which currency you would be looking for within the price string, you would need to getMarketplace() method from the UserData class in In-App Purchasing 2.0. We also purposefully omit the currency symbol in our test JSON files to allow for you to add them yourself as you can change marketplace with the Amazon App Tester. This will allow for you to run test cases to handle looking for currency symbols based on marketplace.
10 |5000

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