How to call queryPurchaseAsync and queryPurchaseHistoryAsync from Unity ?

In Java, we can call queryPurchaseAsync (get recent purchases from cache) and queryPurchaseHistoryAsync (get recent purchases from google play server) to get recent purchases.

How we do that in Unity?

I need to get recent puchases manually.

Hello socialtrens,

You can call RestoreTransactions if you want to force the queryPurchaseAsync.
Then, you can access access your purchases through IStoreController.products.all. Those with a receipt are your active products.