Android Play Store Setup
Please follow all of the included steps to setup and test your In App Purchases via the Android Play Store.
Last updated
Was this helpful?
Please follow all of the included steps to setup and test your In App Purchases via the Android Play Store.
Last updated
Was this helpful?
Using , you can offer in-app products that charge users on a one-time basis, known as in-app products. In-app products can include items like virtual goods (for example, game levels or potions) and premium services within your app on Google Play.
You can also , which charges users on a recurring basis.
we cover this below
Important: Google Play and apply to all in-app products, including both one-time products and subscriptions
Create a payments profile in payments center to manage and track your app sales from Play Console. Review the list of .
Sign in to .
Go to the page (Settings > Developer Account > Payment settings).
Click Create payments profile. Make sure to have your business information available to set up your payments profile.
Under "Payments profile," click the down arrow and select Create payments profile.
Name and address:
Enter the legal name of your business as you want it to appear on your payments profile. This information will be shown to your customers and also on your receipts.
Provide your legal business address as it appears on official documents. It’s important that we have a valid physical address on file for your business. We don't allow you to use a PO box address. Later, you'll need to make sure that your bank account is registered in the same country listed in your payments profile. Learn more .
Primary contact: Enter the name of an authorized representative for your company who Google can contact if we have questions about your payments profile. Provide an email address and a phone number (optional).
Enter the following public business information, or choose to match your public merchant profile and payments profile information:
Enter your business website.
Select the category of products that you sell.
Your customer support email.
The business/product name that'll appear on your customers' credit card statements.
Note: To help customers remember what they purchased and keep chargebacks to a minimum for you, use an appropriate credit card statement name.
When you're finished, click Submit. Note: You cannot change your business location country but you can later.
After you create a payments profile it is automatically linked to your Play Console. Note: If you have set up a payments profile or merchant center account previously, it is already linked to your Play Console.
Before creating a product, make sure to plan your product IDs carefully. Product IDs need to be unique for your app, and they can’t be changed or reused after they’ve been created.
Product IDs must start with a number or lowercase letter, and can contain numbers (0-9), lowercase letters (a-z), underscores (_), and periods (.).
You can’t change or reuse a product ID after the product has been created.
Note: The product ID android.test
is unavailable for use, along with all product IDs that start with android.test
.
To create an in-app product:
Click Create product.
Enter your product details.
Product ID: A unique ID for your in-app product.
Title: A short name of the item (up to 55 characters, but we recommend limiting titles to 25 characters to display properly in all contexts), like "Sleeping potion."
Description: A long description of the item (up to 200 characters), like “Instantly puts creatures to sleep."
Icon: A unique and accurate image for your product. Don't include text, promotions, or branding. Your product icon is shown on your store listing and during the purchase flow.
32-bit PNG
512 px by 512 px
Up to 1 MB
Multi-quantity: Allow multi-quantity checkout for this product. Users will be able to purchase in multiple quantities within the threshold of their country/region. Note the following information:
Multi-quantity checkout is not available in some countries/regions.
In most countries/regions where Multi-quantity checkout is available, the SKU price threshold is around US$100. To allow multi-quantity checkout, you will need to adjust the price (before tax) to below the threshold in each country/region.
Play Points exclusive: Make your product available only in Google Play Points.
Save your changes and click Activate to make your in-app product available to users..
To be available for purchase, a product needs to be active, and its app needs to be published.
With application licensing, you can set up a list of Gmail accounts to test your in-app billing and subscription integration. Your own publishing account is always considered a licensed tester.
This next step is vital for subscriptions. If you don't complete this step, you wont be able to 'acknowledge' subscriptions. For android IAP, 'acknowledging' is how you complete the transaction and if not completed the transaction will revert and you as the developer will not make money on that purchase plus your users will likely have an unpleasant experience (i.e. they loose access to the thing they wanted to buy).
To do this process you need to make API calls. Before you can start making API calls, you need to set up API access to your Google Play Developer Account. This involves changes in both the Google Play Console and Google Cloud Console. The following instructions explain the four steps needed to start using the Google Play Developer API.
Link your developer account to a new or existing Google Cloud Project.
Enable the Google Play Developer API for your linked Google Cloud Project.
Authorize an API key for the Google Play Developer API in your linked Google Cloud Project.
Set up a service account with appropriate Google Play Console permissions to access the Google Play Developer API.
Before you can access the Google Play Developer API, you must link your Google Play Developer Account to a Google Cloud Project. In most cases, we recommend that you create a new Google Cloud Project dedicated to your Google Play Developer Account, but you can link an existing project. Keep in mind that each Google Play Developer Account can only be linked to a single Google Cloud Project. If you have multiple apps in the same Google Play Developer Account, they all must share the same Google Cloud Project.
Click Create new project.
The Google Cloud Project is automatically created and linked to your Google Play Developer Account.
If you are already a user of the Google Cloud Console, you can link to your existing Google Cloud Project by following these steps:
Choose the project you’d like to link. If your project isn't listed, verify that your user account is designated as Owner in the Google Cloud Project you want to link.
Click Link existing project.
Once you have set up the linked Google Cloud Project, you need to enable the Google Play Developer API for this project. To do this, you need to be an owner of the Google Cloud Project.
Under APIs, find the Google Play Developer API and click Turn on.
This directly updates the Google Cloud Project and the change takes effect immediately.
To use the API, you need an API key in your linked Google Cloud Project that is authorized to use the Google Play Developer API. Set this up in the Google Play Console.
You need to configure access to the Google Play Developer API with an OAuth client or a service account. In most cases, you should use a service account to access the API.
Service accounts must be used in a secure environment, such as your server. The service account credentials need to be securely managed so they are not revealed to anyone that is not authorized to use the API.
The OAuth Client ID should be used if you need to access the API on behalf of an individual user. For example, if your website needs to access the Google Play Developer API from the web client on behalf of the user, you can use the Client ID. The user will be authenticated with their Google account instead of the service account. This allows you to make API calls on behalf of a user without compromising service account credentials.
Service account: A secure software service will access the API (most common)
OAuth clients: A user will access the API
Under Service accounts, click Create new service account.
Follow the instructions to create your service account.
During the process of account creation you need to grant your service account access to the Google Cloud Project in order for it to appear in the Google Play Console.
Click Grant Access to provide the service account the necessary rights to perform actions.
To use the Google Play Billing APIs, you must grant the following permissions:
View financial data, orders, and cancellation survey responses
Manage orders and subscriptions
3. Find and click on the service account in the list in the Google Cloud Platform
4. Click the Keys tab
5. Click "Add key" then "Create new Key"
6. Select JSON as the key type and click Create. The file will automatically download to your default download folder.
Open Play Console and go to the page (Monetize > Products > In-app products).
Price: Enter a price in your local currency or .
To configure multi-quantity checkout in Play Console, your app needs . Visit the to learn how to integrate the Google Play Billing Library into your app
If you’re using a test account, active items are available in unpublished apps. To learn more, go to the .
In-app products use the same default language as their app. To add translations in specific languages, select an in-app product, and then click Manage translations and apply the languages you want. .
Review Google's updated in the Developer Policy Center to ensure your app is compliant with the latest changes.
Using , you can offer in-app products that charge users for content or services on a recurring basis, known as subscriptions. Subscriptions can include items like a collection of apps, games, or other content for a recurring fee within your app on Google Play.
You can offer multiple subscriptions within the same app. Subscriptions must be priced within the . Subscriptions can't be unpublished.
You can also , which charges users on a one-time basis.
Important: Google Play and apply to in-app products and subscriptions.
If you’re in a supported location and want to start using Google Play's billing system features in your apps, and .
Note: Weekly subscriptions can now be charged using Direct Carrier Billing (DCB). For more information, review the .
Read more about Google in-app subscriptions .
Adding a subscription is similar to , except the price is set for a period of time.
Before adding a subscription, review our .
Open Play Console and go to page (Monetize > Products > Subscriptions).
Free trial: You can let users try your subscription before they pay. If you select Enabled, choose how many days you want to make it available for free. Learn more .
Introductory price: You can offer new subscribers a discounted price for a specific duration. If you do, this must be within the accepted price range and cost less per day than the original price. Learn more .
Grace period: You can give users time to resolve payment issues while keeping their subscription active. Grace periods can be 3 days, 7 days, or 14 days. Learn more .
Resubscribe: Enabling resubscribe allows users to resubscribe from the Play Store after cancellation. Learn more .
If you’re using a test account, active items are available in unpublished apps. To learn more, go to Google's site.
To set up , start by adding your list of testers' Gmail addresses in Play Console.
Open .
Your app has been published to the open, closed, internal test, or production track. We recommend publishing your app to the internal test track. Make sure that your testers are also eligible to receive your release by following the instructions for or using .
You've .
Learn more about and using .
You should also verify that purchases are properly acknowledged as described in . For purchases from license testers, a purchase will be refunded after 3 minutes if your app does not acknowledge the purchase and you will receive an email about the cancellation. You can also check the Orders tab in the Google Play Console to see if an order was refunded after 3 minutes.
Similar to one-time products, you should also verify that purchases are properly acknowledged as described in . For purchases from license testers, a purchase will be refunded after 3 minutes if your app does not acknowledge the purchase and you will receive an email about the cancellation. You can also check the Orders tab in Google Play Console to see if an order was refunded after 3 minutes.
Go to the page on the Google Play Console.
Go to the page on the Google Play Console.
Go to the page on the Google Play Console.
You can create a from the Google Play Console.
Go to the page on the Google Play Console.
Once you’ve created the service account on the Google Play Console, click Done. The Service Accounts section of the page automatically refreshes, and your service account is listed.
At this point, you should be able to access the Google Play Developer API through the service account. For more information, see .
Go to your in the Android Developer Console
Find the service account you created in and click "View in Google Cloud Platform"