UnityEngine.Purchasing missing

I followed two tutorials one made by unity and one on youtube

to implement a shop for my mobile game for google play. All went good but i encountered a problem so i deleted my local file and downloaded the project from unity collab.
But then i got multiple errors in console for example

Assets\Script\INAPPPURCHASING\IAPManager.cs(8,42): error CS0246: The type or namespace name ‘IStoreListener’ could not be found (are you missing a using directive or an assembly reference?)

Because i used UnityEngine.Purchasing interface and all its methods. But i noticed that the unity doc is about 2018.1, but when i jump to the 2019.3 UnityEngine.Purchasing is missing! Like Unity made UnityEngine.Purchasing obsolete so my entire code is entire obsolete!

What can i do?

You install IAP via the Services window in the Editor. It will walk you through the installation prompts. Once you have it installed properly, the Purchasing namespace is available. I would suggest that you start with a new project, and add Analytics and then IAP

1 Like