This article describes steps to generate a Google Service Account, which is needed in order to achieve in-app purchase in BLOX NX Android apps.
Google Service accounts are used by BLOX for functionality in Android apps. Because the Google permissions needed are different based on the type of activity, a unique service account is needed for in-app purchase.
Log into your app’s Firebase project
Click the gear icon on the top left panel and select "Project settings"
Search for "Google Play API" and enable it.
From the tab bar, click "Service Accounts" then "Manage service account permissions"
You are now in the Google Cloud Platform. Click "Create service account” and enter a service account ID (For example: playstoreblox). Click Create and Continue
From the role dropdown type in "Pub/Sub admin" and select the option from the dropdown. Click "Done"
Find the newly created service account from the table and select "Manage Keys"
Copy and save the email address of the service account. This will be used later in the Google Play Store
Click "Add Key" then, from the dropdown, select "Create new key"
The default "JSON" should be selected. Click "Create". The page will add a JSON file to your Downloads folder
Go to the Google Play Store console. From the left panel select "Users and permissions" (Note, if you do not see this option you do not have the proper permissions to proceed, see your Play Store administrator).
Click the three dots and select "Invite new users"
For the email address, enter the service account's email found in the Google Cloud Platform
Click "Add app" and select the BLOX Mobile NX apps
From the permissions modal, select "View financial data", "Manage orders and subscriptions", and "Manage store presence" then select "Apply"
Wait 24 hours, then invite the service account email as a test user into the app
Upload the JSON file downloaded from the Google Cloud Platform into BLOX by going to Design > Apps > Application Settings > Google Service Accounts > New.
Give the JSON file a name that identifies this as the service account for in-app purchase, and Save.