How to get local price with currency in IAP

Hi there!

I wondering how to get a local price from a products of the Store
I used Unity IAP system and it has ProductCatalogItem in list of Icollection class
and I want to get a local price of each product, and I know that I can get a price from ProductMetadata right?

But how to get ProductMetadata from a ProductCatalogItem class?

Thanks!!!

You would want to use localizedPriceString, there is a code example here:

https://discussions.unity.com/t/723845

1 Like

Thanks you very much!
I will try.

it can show me the right price! thank you very much!
But some items! I’ve see it just 0 USD I don’t know why?
or that IAP item need to passed review? But this was sell on store already.
why the price still 0 in some items.

What is different about the items? Ensure that you are going through Closed testing on Google Play https://docs.unity3d.com/Packages/com.unity.purchasing@4.4/manual/UnityIAPGoogleConfiguration.html

Hi @JeffDUnity How I can get local price before product sale?