This document explains how to activate In-App Purchasing (IAP).
The Unity IAP package provides coded and codeless approaches that you set up to:
Here is an overview of the steps to get IAP working in your project:
Your task will be to create items for players to buy and obtain their identifiers.
To make this happen behind the scenes, you must tie Product ID to each item you are selling using a specified format. Some stores require that you customize the Product ID for their stores.
Before you create your products, consider how you will define the following in your stores:
Stores may offer unique functionality that does not fit into the normal cross-platform purchase flow. This extended functionality is accessed via the IExtensionProvider
which is provided to your application when Unity IAP initializes successfully.
It is not necessary to use platform-dependent compilation when using extensions; each extension comes with a fake no-op implementation which is used when running on a platform that does not offer the extended functionality.
More information can be found in the Stores
section of this manual
README
in the Inspector. Double-click to open its Unity Scene and click Play to interact with the sample.Refer to the Unity Learn IAP classes for more guidance.