I am trying to set up IAPs in my project for IOS and Android. I followed the documentation, and pasted the initialization code from the documentation into my project. It shot out a bunch of errors in the code and the using UnityEngine.Purchasing says the type or name namespace 'Purchasing" does not exist. How do I fix this?
Did you install the Unity IAP package?
Yes, I turned on the IAP and Analytics. I imported the Unity IAP package. Everything in Unity says it is good to go. But, when I got to the initialization script, I got that error. Once again, I copied it directly from the documentation.
I’d look at this https://unity3d.com/unity/features/iap
I believe this is for their newer system.
Thanks, I tried installing this, but it keeps failing, saying the In-App Purchase service is off. Yet, it is on.
Eliminate all errors in your code and then import Unity IAP(or Reimport) in Services tap.
Optionally, It’s good to close all editor for coding before import or reimport Unity IAP.