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
Before setting up the Google In-App Purchases integration, ensure you have:
- An active DashX account
- A Google Play Console account
- An app published (at least to a testing track) with in-app products configured
Create a service account
DashX uses the Google Play Developer API to verify purchases, which authenticates with a service account key.
- Open the Google Cloud Console and select the project linked to your Play Console account
- Go to IAM & Admin > Service Accounts and click Create service account
- Give it a name (e.g.
dashx-play-billing) and create it - Open the service account, go to the Keys tab
- Click Add key > Create new key, choose JSON, and download the file
Then grant it access in the Play Console:
- Open the Google Play Console
- Go to Users and permissions and invite the service account's email address
- Grant it permission to view financial data and manage orders for your app
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
- Log in to your DashX workspace
- Navigate to Settings > Integrations
- Click [+] to add a new integration and select Google In-App Purchases
- Choose the environments you want to enable it for
- Enter the configuration below and save
Configuration
| Field | Description |
|---|---|
| Package Name | The package name of your Android app. |
| Credentials | The full contents of the service account JSON key file. |
Permission changes in the Play Console can take some time to propagate before the API accepts the service account.