Skip to main content

Google In-App Purchases

Process purchases made inside your Android app through Google Play. Once installed, this integration becomes available as a payment gateway for the Billing app.

Prerequisites

Prerequisites

Before setting up the Google In-App Purchases integration, ensure you have:

Create a service account

DashX uses the Google Play Developer API to verify purchases, which authenticates with a service account key.

  1. Open the Google Cloud Console and select the project linked to your Play Console account
  2. Go to IAM & Admin > Service Accounts and click Create service account
  3. Give it a name (e.g. dashx-play-billing) and create it
  4. Open the service account, go to the Keys tab
  5. Click Add key > Create new key, choose JSON, and download the file

Then grant it access in the Play Console:

  1. Open the Google Play Console
  2. Go to Users and permissions and invite the service account's email address
  3. Grant it permission to view financial data and manage orders for your app
warning

The downloaded JSON is a credential. Store it securely and do not commit it to source control.

Find your Package Name

The package name identifies your Android app — for example com.yourcompany.yourapp. It is shown in the Play Console under your app's dashboard, and appears as applicationId in your app's build.gradle.

Connect to DashX

  1. Log in to your DashX workspace
  2. Navigate to Settings > Integrations
  3. Click [+] to add a new integration and select Google In-App Purchases
  4. Choose the environments you want to enable it for
  5. Enter the configuration below and save

Configuration

FieldDescription
Package NameThe package name of your Android app.
CredentialsThe full contents of the service account JSON key file.
tip

Permission changes in the Play Console can take some time to propagate before the API accepts the service account.