1. Set Up License Testing
- Go to Google Play Console -> Settings -> License testing.
- Add the Gmail account you will use for testing.
- Set the license response to RESPOND_NORMALLY.
2. Set Up a Test Device
You can use a physical device or an emulator with Google Play Store installed. For emulators, make sure to select an image with Google Play Store support in Android Studio’s AVD Manager. The test Gmail account must be the primary account on the device.3. Configure Sandbox Environment
Add the sandbox environment setting to your SDK initialization to distinguish test data from production:Kotlin
Java
4. Make a Test Purchase
- Run your app on the test device.
- Sign in with the license tester Gmail account.
- Trigger a purchase — Google Play will process it in test mode.