Skip to main content
Follow the steps below to verify your Google Play integration with a test purchase.

1. Set Up License Testing

  1. Go to Google Play Console -> Settings -> License testing.
  2. Add the Gmail account you will use for testing.
  3. 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
val qonversionConfig = QonversionConfig.Builder(
    this,
    "[projectKey]",
    QLaunchMode.SubscriptionManagement
)
    .setEnvironment(QEnvironment.Sandbox) // Add this line for testing
    .build()
Qonversion.initialize(qonversionConfig)
Java
final QonversionConfig qonversionConfig = new QonversionConfig.Builder(
        this,
        "[projectKey]",
        QLaunchMode.SubscriptionManagement
)
        .setEnvironment(QEnvironment.Sandbox) // Add this line for testing
        .build();
Qonversion.initialize(qonversionConfig);

4. Make a Test Purchase

  1. Run your app on the test device.
  2. Sign in with the license tester Gmail account.
  3. Trigger a purchase — Google Play will process it in test mode.
If you see “Something went wrong” during the first purchase, go to Settings -> Accounts on the device and complete the account sign-in process.
Do not use the sandbox environment in production. Switch to the production environment before releasing your app.