文档

Set up IAP

Install the Unity In-App Purchasing (IAP) package and configure Unity IAP for your project.
阅读时间1 分钟最后更新于 3 天前

Before you can sell products in your application, install the Unity In-App Purchasing (IAP) package and write the initialization code that connects your game to the app store at runtime.
注意
This setup applies if you want to set up IAP for platform-native stores. To set up IAP for Direct-to-Consumer payment providers, refer to Integrate D2C payment providers workflow.
Complete both steps in sequence: install the package first to add Unity IAP to your project, then implement the initialization logic to connect to your chosen store and load your product catalog.