Configure IAP Platform Settings

In this how-to, we will enable and configure Google Play Store in LootLocker so it can be used to handle in-app purchases.

Prerequisites

Configure IAP Settings in LootLocker

In the LootLocker Web Console, navigate to Settings and select In-App Purchases.

Select Google Play Store from the list of available providers.

Configure Google Play Store Settings

Fill in the following fields:

  • Test Purchases: Enables Google Play test (sandbox) purchases. Use this during development to validate purchase flows without charging real users.

  • Package Name: The unique identifier for your Android app (e.g., com.yourcompany.yourgame). This must match the package name configured in your app and in Google Play Console.

  • Type: The type of Google Cloud credential. This should be set to service_account, which is required for server-to-server communication with Google Play.

  • Project ID: Your Google Cloud project ID associated with your app and Google Play Developer account.

  • Private Key ID: The identifier for the service account private key. This is included in the JSON key file generated in Google Cloud.

  • Private Key: The .p8 private key from your Google Cloud service account credentials. Upload the key file here (Base64 encoded). This is used to authenticate requests to Google Play APIs.

  • Client Email: The service account email address (e.g., [email protected]). This account must be granted access to your app in the Google Play Console.

  • Client ID: The OAuth 2.0 client ID associated with the service account.

  • Auth URI: The OAuth 2.0 authorization endpoint. Typically: https://accounts.google.com/o/oauth2/auth

  • Token URI: The OAuth 2.0 token endpoint used to obtain access tokens. Typically: https://oauth2.googleapis.com/token

  • Auth Provider x509 Cert URL: The URL for Google’s OAuth 2.0 public certificates. Typically: https://www.googleapis.com/oauth2/v1/certs

  • Client x509 Cert URL: The URL for the service account’s public certificate.

  • Universe Domain: The Google Cloud universe domain. Typically: googleapis.com

circle-exclamation

Once all required fields have been filled in, click the Enable toggle to enable Google Play Store as a purchase provider for your game.

Click Save Changes to save your configuration.

Conclusion

In this guide, we enabled Google Play Store for in-app purchases and configured the required settings in LootLocker. Next, you can create purchasable catalog listings that can be purchasesd in-game.

Last updated

Was this helpful?