In-app Billing is a Google Play service that lets you sell digital content from inside your applications. You can use the service to sell a wide range of content, including downloadable content such as media files or photos, virtual content such as game levels or potions, premium services and features, and more. You can use In-app Billing to sell products as
New in In-App Billing
- Seasonal subscriptions—You can now set up a recurring seasonal subscription that starts and ends on the same date each year (for example, a sports subscription that starts every September 1 and ends every April 10).
- Deferred subscription billing—You can defer a subscriber's next billing date until the date you choose. The user still has access to the content but is not charged during the deferral period.
- Google Play Developer API—The Google Play Developer API allows you to perform a number of publishing and app-management tasks. It includes the functionality previously known as the Purchase Status API.
- Refund/Revoke subscription—You can use the Google Play Developer API to refund and revoke a user's subscription. If you do this, the user's subscription ends immediately, and his or her most recent subscription payment is refunded.
- In-app Billing Version 3—The latest version of In-app Billing features a synchronous API that is easier to implement and lets you manage in-app products and subscriptions more effectively.
- Standard in-app products (one-time billing), or
- Subscriptions, (recurring, automated billing)
When you use the in-app billing service to sell an item, whether it's an in-app product or a subscription, Google Play handles all checkout details so your application never has to directly process any financial transactions. Google Play uses the same checkout backend service as is used for application purchases, so your users experience a consistent and familiar purchase flow.
Any application that you publish through Google Play can implement In-app Billing. No special account or registration is required other than a Google Play Developer Console account and a Google Wallet merchant account.
To help you integrate in-app billing into your application, the Android SDK provides a sample application that demonstrates how to sell standard in-app products and subscriptions from inside an app.
To get started, read the documents below or take the Selling In-app Products training class.
- Read this document for a description of the underlying concepts in In-app Billing.
- Version 3 API
- Read the documents in this section for an overview of the latest version of In-app Billing, as well as implementation details and API reference.
- Security and Design
- Review these best practices to help ensure that your In-app Billing implementation is secure and well designed.
- Testing In-app Billing
- Understand how the In-app Billing test tools work and learn how to test your In-app Billing implementation.
- Administering In-app Billing
- Learn how to set up your product list, register test accounts, and handle refunds.