Get started with Unity IAP
This guide goes through the initial setup for Unity In-App Purchasing (IAP). To successfully use Unity IAP, perform the following actions:
- Meet all the prerequisites.
- Install the IAP package.
- Enable and configure the IAP service for your project.
Prerequisites
Before you begin, ensure you meet the following requirements:
- A Unity project running on a supported Unity version.
- A project linked to a Unity Project ID in the Unity Editor (Services > General Settings).
Install the IAP package
To begin using the IAP SDK, install the In-App Purchasing package.
- In the Unity Editor, select Window > Package Manager.
- Select the Unity Registry tab.
- Search for In-App Purchasing (or com.unity.purchasing).
- Select the package, then select Install.
Enable and configure the IAP service for your project
Note: This step is not required to begin using IAP. You only need to complete it if you plan to use other Unity services, send IAP analytics, or set your Google private key through the Unity Editor.
- Open your Unity project in the Unity Editor.
- From the menu, go to Window > General > Services to open the Services window.
- Create a Project ID, then connect the project to an organization.
- Answer the COPPA compliance questions.
- The Services window displays a list of services. Select In-App Purchasing.
- The Project Settings window opens.
- Use the toggle next to In-App Purchasing Settings to select ON.