This is a difficult process but it is required in order for Apphud to validate in-app purchases in Google Play.
Go to Settings page in your Google Play Console and Open API Access tab:
Click "Choose a project to link":
Agree to Terms:
Next let's create a service account.
Click "Create new service account":
Navigate via link to Google Cloud Platform:
Click "CREATE SERVICE ACCOUNT":
Enter the name of your service account and click "CREATE":
Select "Owner" for this account permissions:
Next you will need to create a new private key for this account:
Select "JSON" key type and click "CREATE":
After that you will need to grant financial access to this account.
Click "Grant permissions":
Select "Account permissions" and grant the following permissions:
- View app information and download bulk reports (read-only)
- View financial data, orders, and cancellation survey responses
- Manager orders and subscriptions
Click "Invite User" and "Send Invite".
In the Users and Permissions page in App permissions tab select your app and Apply permissions:
Your App permissions should be automatically granted by account permissions. Click "Apply":
Upload Service Account JSON file or enter JSON contents to Apphud when creating new app or if you already have created app, then in "Settings > Android app settings" page:
In the Google cloud, you can create another topic and set up sending webhooks to Apphud and other services.
You need to go to the Google Cloud console section, and then go to Pub/Sub > Subscriptions and create a Subscritipion with the Push type. Create Push and paste the URL of your server where you need to send the subscriprtion notifications.
If you believe you did everything right, but Apphud still shows "Invalid Service Account JSON or Package Name. Please check permissions." error, check the following:
- Make sure you upload the APK file to Google Play for at least internal testing.
- Allow up to 24 hours for Google Servers to activate your service account.
Updated 3 months ago