Once you have set up your project for Unity Services, you can enable the Unity IAPAbbreviation of Unity In App Purchase
See in Glossary service. To enable Unity IAP in your project:
Note: Enabling Unity IAP also enables Unity AnalyticsAbbreviation of Unity Analytics
See in Glossary in your project.
Unity will automatically import the latest verified In-App Purchasing packageA container that stores various types of features and assets for Unity, including Editor or Runtime tools and libraries, Asset collections, and project templates. Packages are self-contained units that the Unity Package Manager can share across Unity projects. Most of the time these are called packages, but occasionally they are called Unity Package Manager (UPM) packages. More info
See in Glossary. If you’ve already imported a version of the package, you can open the Package Manager from this menu to update or modify your previous installation.
Click Import to import Unity’s IAP’s store package Asset to access app store functionality on the following platforms:
The Unity IAP Installer will take you through the Asset package import process. This adds a new folder Assets/Plugins to your project, containing the Unity Purchasing assets required to use Unity IAP. For more information, see documentation on store guides.
The following error messages may indicate that Unity IAP is disabled in the Unity Cloud Services window, or that Unity is disconnected from the Internet:
CS0246
System.Reflection.ReflectionTypeLoadException
UnityPurchasing/Bin/Stores.dll
UnityEngine.Purchasing
To resolve these errors:
Note: You must have an “Owner” or “Manager” role for the project’s registered Organization to enable the Unity IAP Service.