Google Play Billing is the system used for in-app purchases on Android devices.
When publishing a Unity game on Google Play, developers can use Unity IAP to manage purchases across multiple platforms. However, the products must also be configured correctly in the Google Play ecosystem.
This guide covers the Android side of the Unity IAP and Google Play Billing workflow.
Before configuring in-app purchases for Android, make sure you have:
- A Unity project with Unity IAP installed
- A valid Android package name
- A Google Play application configured
- Access to the required Google Play Console features
- Product IDs planned for your game
The Product IDs used in Unity should match the products configured for your Android application.
Before creating products, decide how each purchase should behave.
Common purchase types include:
Consumable products can usually be purchased multiple times.
Examples:
- Coins
- Gems
- Extra lives
- Power-ups
- Temporary boosts
Example Product ID:
com.yourcompany.yourgame.coins100