IAP metadata.localizedPrice not working for Asian currency

Hello,

I have this line of code which works perfectly in western stores :

buyButtonText.text = _myIAP.m_StoreController.products.WithID(_myIAP.charsIDs[scrollPage]).metadata.localizedPrice.ToString();

it shows the right price with the right currency symbol (€, $, etc…) on Western stores, however on the Japanese google store it doesn’t, and we are scheduled for a feature on Google Play in there, and had this issue specifically requested to fix by google.

is this a known issue ?

thanks

Did Google confirm the issue?

Sorry, the confusion was in our side…
metadata.localizedPrice waw working properly (giving the right price on that store).
what i should use instead is metadata.isoCurrencyCode then all i had to do is create this array :

{ "USD", "$ " },
{ "EUR", "€ " },
{ "GBP", "£ " },
{ "CNY", "¥ " },
{ "HKD", "$ " },
{ "JPY", "¥ " },
{ "MOP", "$ " },
{ "SGD", "$ " },
{ "KRW", "₩ " },

and based on the returned value from metadata.isoCurrencyCode i just chose the proper symbol from the array.

sorry again :slight_smile:

use metadata.localizedPriceString, that includes the currency symbol.

1 Like

oh really :open_mouth:
thanks!