UnityIAP how to subscribe or override OnProductsRetrieved callback

Hi
I use UnityIAP for game store and I want to convert price to localized price

product.metadata.localizedPriceSting

but the things is that… i thought unity has some callbacks functions where UnityIAP can notify us that products available for purchase has been received and I can subscribe to this event and convert prices as soon as i receive products

I found Extension Interfaces IStore and IStoreCallback and method

OnProductsRetrieved

Is there a way to subscribe or override these functions
or how can i achieve this

I know that we can change price when user open Store window but i thought is there any clean way

You can do this in OnInitialized.

6099810--663243--upload_2020-7-17_14-34-7.png

Awesome… thank you for quick response

1 Like