I’ve recently upgraded my project to unity 2019 lts and I’ve been working through the bugs that have come up from the upgrade so far, but I’ve ran into this new bug I don’t know how to fix.
I’m getting these errors in my console:
Assets/Scripts/Shop/ShopManager.cs(235,53): error CS0103: The name 'StandardPurchasingModule' does not exist in the current context
Assets/Scripts/Shop/ShopManager.cs(297,61): error CS0246: The type or namespace name 'IAppleExtensions' could not be found (are you missing a using directive or an assembly reference?)
Any help would be much appreciated.
In my case using Unity 2019.4.x, I upgraded UnityIAP from 2.2 to 3.2. With the new versions of IAP you should get it from UPM window instead of asset store. You don’t need any of the folders under plugins anymore.
I was getting that error because StandardPurchasingModule lives in Unity.Purchasing.Stores dll and I was using an assembly definition which only included Unity.Purchasing as a dependency. Adding the former dll to my assembly definition fixed the problem.
@MoonBoop Go into your Unity Purchase folder in Unity/Assets/Plugins/UnityPurchasing and install the UnityIAP package… That should fix your problem