Content of this article
- Preliminary Remarks
- Create Service Account
- Create Key for Service Account
1. Preliminary Remarks
Service accounts are used for applications such as plenigo for authorized API calls. If an application has authenticated itself as a service account, it has access to all resources (topic, subscription, etc.) to which the service account has access.
In the context of in-app purchases a service account is used for authenticating plenigo to the Google services.
2. Create Service Account
In the Google Play Console:
- Open IAM and Management / Service accounts
- Select the desired Google Cloud project.
- Click on "+ Create service account".
- Create a service account:
- Choose the name for the service account. This name is visible only internally and can also be changed.
- The service account ID is automatically created based on the name.
- Description for the service account is optional.
- Click on "Create and continue". - Determine access and roles for the service account:
- In Service accounts, select the role service account user.
- Alternatively, select the role owner.
- Click on Continue. - Connect the service account with users:
- This option is not required for using plenigo, however, depending on the organization structure, it might be necessary.
- Click on "Done" to finish creating the service account.
3. Create Key for Service Account
A key must be created so that the created service account can be used as authentication by plenigo.
In the Google Play Console:
- Open the created service account.
- Select the "Key" tab.
- Click on "Add key".
- Select option "Create new key".
- Select "JSON" as key type.
- Click on "Create".
- The key is now downloaded as file.
The content of the key file must then be stored in the Merchant Backend.