• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1page.title=Google Play In-app Billing
2@jd:body
3
4<p>In-app Billing is a Google Play service that lets you sell digital content from inside
5your applications. You can use the service to sell a wide range of content, including downloadable
6content such as media files or photos, virtual content such as game levels or potions, premium services
7and features, and more. You can use In-app Billing to sell products as</p>
8
9<div class="sidebox-wrapper">
10<div class="sidebox">
11  <h2><strong>New in In-App Billing</strong></h2>
12  <ul>
13  <li><strong>Purchase Status API</strong>&mdash;The <a href="{@docRoot}google/play/billing/gp-purchase-status-api.html">Purchase Status API</a> lets you query the status of in-app product or subscription purchases. </li>
14  <li><strong>In-app Billing Version 3</strong>&mdash;The <a href="{@docRoot}google/play/billing/api.html">latest version</a> of In-app Billing features a synchronous API that is easier to implement and lets you manage in-app products and subscriptions more effectively.</li>
15  <li><strong>Subscriptions now supported in Version 3</strong>&mdash;You can query and launch purchase flows for subscription items using the V3 API.</li>
16  <li><strong>Free trials</strong>&mdash;You can now offer users a configurable <a href="/google/play/billing/v2/billing_subscriptions.html#trials">free trial period</a> for your in-app subscriptions. You can set up trials with a simple change in the Developer Console&mdash;no change to your app code is needed.</li>
17 </ul>
18</div>
19</div>
20
21<ul>
22<li>Standard in-app products (one-time billing), or</li>
23<li>Subscriptions, (recurring, automated billing)</li>
24</ul>
25
26<p>When you use the in-app billing service to sell an item,
27whether it's an in-app product or a subscription, Google Play
28handles all checkout details so your application never has to directly process
29any financial transactions. Google Play uses the same checkout backend service as
30is used for application purchases, so your users experience a consistent and
31familiar purchase flow.</p>
32
33<p>Any application that you publish through Google Play can implement In-app Billing. No special
34account or registration is required other than a Google Play Developer Console account and a Google
35Wallet merchant account.</p>
36
37<p>To help you integrate in-app billing into your application, the Android SDK
38provides a sample application that demonstrates how to sell standard in-app
39products and subscriptions from inside an app.</p>
40
41<p>To get started, read the documents below or take the <a href="{@docRoot}training/in-app-billing/index.html">Selling
42    In-app Products</a> training class.</p>
43</div>
44</div>
45
46<dl>
47  <dt><strong><a href="{@docRoot}google/play/billing/billing_overview.html">Overview</a></strong></dt>
48    <dd>Read this document for a description of the underlying concepts in In-app Billing.</dd>
49  <dt><strong><a href="{@docRoot}google/play/billing/api.html">Version 3 API</a></strong></dt>
50    <dd>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.</dd>
51  <dt><strong><a href="{@docRoot}google/play/billing/billing_best_practices.html">Security
52  and Design</a></strong></dt>
53    <dd>Review these best practices to help ensure that your In-app Billing implementation is
54    secure and well designed.</dd>
55  <dt><strong><a href="{@docRoot}google/play/billing/billing_testing.html">Testing In-app
56  Billing</a></strong></dt>
57    <dd>Understand how the In-app Billing test tools work and learn how to test your In-app Billing
58    implementation.</dd>
59  <dt><strong><a href="{@docRoot}google/play/billing/billing_admin.html">Administering
60  In-app Billing</a></strong></dt>
61    <dd>Learn how to set up your product list, register test accounts, and handle refunds.</dd>
62</dl>
63