This document guides you through the process of connecting your Google Play Store app with Chargebee. To connect Google Play Store with Chargebee, you must provide permissions to Chargebee through a service account. This permission allows Chargebee to connect to Google on behalf of your app and manage your subscriptions too. Establishing this connection offer you the following benefits:
Chargebee requires the following information to connect to Google on behalf of your app:
Follow the steps below to retrieve your app name and app package name:
Follow the steps below to generate service account credentials JSON:
Navigate to the home page of Google Play Console.
Click API Access from the Setup menu.
Click Choose a project to link to associate with your Chargebee app.
Review the Terms of Service notification and click I Agree.
Click Create new service account from the Service accounts section.
Click Google Cloud Platform from the Create new service account pop-up window.
Note: You are directed to a new window. Do not close the current window since it will be used for configuration later.
Select the applicable project from the list.
Click Create Service Account from the header menu.
Enter the desired name in the Service account name field and click CREATE AND CONTINUE.
Select Pub/Sub Admin from the Select a role drop-down list in the Grant this service account access section. This allows Chargebee to receive notifications from Google on your App's behalf.
Click ADD ANOTHER ROLE.
Select Monitoring Viewer from the Select a role drop-down list in the Grant this service account access section.
Click Continue to proceed.
Click Done to complete the creation of a service request.
Select the applicable service account and click Manage keys from menu.
Click Create a new key from the ADD Key drop-down list.
Select the JSON radio button and click CREATE.
The JSON private key is saved to the your local computer.
Note: This key cannot be recovered if lost and must be stored safely.
Return to your Google Play Console and click Done.
Click Grant Access for the applicable service account in the Google Play Console.
Select the following checkboxes to enable Chargebee to receive subscription-related notifications from Google.
Click Invite User to review the pop-up notification and click Send Invite.
Click the applicable service account from the list.
Select the applicable app from the Add app drop-down list and click Apply.
Click Apply to complete linking the service account.
Follow the steps below to configure your Play Store app with Chargebee:
Login to your Chargebee site and click Apps from the menu.
Click Go to Marketplace.
Click Mobile App Store.
Click Google Play Store.
Click Proceed to initiate the connection of your Play Store app with Chargebee.
Type the name of the app and package name retrieved from the Play Store Console in the App Name and Package Name field.
Click Browse or use the drag-and-drop function to upload the JSON file saved on your system during the creation of the service account.
Note: All three fields are mandatory to connect your Play Store app with Chargebee.
Click Connect to complete the integration process.