Home | History | Annotate | Download | only in billing
      1 page.title=In-app Billing
      2 @jd:body
      3 
      4 <div id="qv-wrapper">
      5 <div id="qv">
      6 
      7   <h2>Topics</h2>
      8   <ol>
      9     <li><a href="{@docRoot}guide/google/play/billing/billing_overview.html">Overview of In-app
     10     Billing</a></li>
     11     <li><a href="{@docRoot}guide/google/play/billing/billing_integrate.html">Implementing In-app
     12     Billing</a></li>
     13     <li><a href="{@docRoot}guide/google/play/billing/billing_subscriptions.html">Subscriptions</a></li>
     14     <li><a href="{@docRoot}guide/google/play/billing/billing_best_practices.html">Security and
     15     Design</a></li>    <li><a href="{@docRoot}guide/google/play/billing/billing_testing.html">Testing In-app
     16     Billing</a></li>
     17     <li><a href="{@docRoot}guide/google/play/billing/billing_admin.html">Administering In-app
     18     Billing</a></li>
     19   </ol>
     20   <h2>Reference</h2>
     21   <ol>
     22     <li><a href="{@docRoot}guide/google/play/billing/billing_reference.html">In-app Billing
     23     Reference</a></li>
     24   </ol>
     25   <h2>Downloads</h2>
     26   <ol>
     27     <li><a href="{@docRoot}guide/google/play/billing/billing_integrate.html#billing-download">Sample
     28     Application</a></li>
     29   </ol>  
     30 </div>
     31 </div>
     32 
     33 <p>In-app Billing is a Google Play service that lets you sell digital content from inside
     34 your applications. You can use the service to sell a wide range of content, including downloadable
     35 content such as media files or photos, virtual content such as game levels or potions, premium services 
     36 and features, and more. You can use In-app Billing to sell products as</p>
     37 
     38 <ul>
     39 <li>Standard in-app products (one-time billing), or</li>
     40 <li>Subscriptions, (recurring, automated billing)</li>
     41 </ul>
     42 
     43 <div class="sidebox-wrapper">
     44 <div class="sidebox">
     45   <h2>Support for subscriptions <span class="new">New!</span></h2>
     46   <p>In-app Billing now lets you sell subscriptions in your apps, as well as standard in-app products. 
     47   For details on how to sell subscriptions to content, services, and features, see the
     48   <a href="{@docRoot}guide/google/play/billing/billing_subscriptions.html">Subscriptions</a> documentation.</p>
     49 </div>
     50 </div>
     51 
     52 <p>When you use the in-app billing service to sell an item,
     53 whether it's an in-app product or a subscription, Google Play
     54 handles all checkout details so your application never has to directly process
     55 any financial transactions. Google Play uses the same checkout backend service as
     56 is used for application purchases, so your users experience a consistent and
     57 familiar purchase flow (see figure 1). Also, the transaction fee for in-app
     58 purchases is the same as the transaction fee for application purchases
     59 (30%).</p>
     60 
     61 <p>Any application that you publish through Google Play can implement In-app Billing. No special
     62 account or registration is required other than an Android Market publisher account and a Google
     63 Wallet Merchant account. Also, because the service uses no dedicated framework APIs, you can add
     64 in-app billing to any application that uses a minimum API level of 4 or higher.</p>
     65 
     66 <p>To help you integrate in-app billing into your application, the Android SDK
     67 provides a sample application that demonstrates how to sell standard in-app
     68 products and subscriptions from inside an app. The sample contains examples of
     69 billing-related classes you can use to implement in-app billing in your
     70 application. It also contains examples of the database, user interface, and
     71 business logic you might use to implement in-app billing.</p>
     72 
     73 <p class="caution"><strong>Important</strong>: Although the sample application is a working example
     74 of how you can implement in-app billing, we <em>strongly recommend</em> that you modify and
     75 obfuscate the sample code before you use it in a production application. For more information, see
     76 <a href="{@docRoot}guide/google/play/billing/billing_best_practices.html">Security and Design</a>.</p>
     77 
     78 <img src="{@docRoot}images/billing_checkout_flow.png" height="382" id="figure1" />
     79 <p class="img-caption">
     80   <strong>Figure 1.</strong> Applications initiate in-app billing requests through their own UI
     81   (first screen). Google Play responds to the request by providing the checkout user interface
     82   (middle screen). When checkout is complete, the application resumes.
     83 </p>
     84 
     85 <p>To learn more about Google Play's in-app billing service and start integrating it into your
     86 applications, read the following documents:</p>
     87 
     88 <dl>
     89   <dt><strong><a href="{@docRoot}guide/google/play/billing/billing_overview.html">Overview of In-app
     90   Billing</a></strong></dt>
     91     <dd>Learn how the service works and what a typical in-app billing implementation looks
     92     like.</dd>
     93   <dt><strong><a href="{@docRoot}guide/google/play/billing/billing_integrate.html">Implementing
     94   In-app Billing</a></strong></dt>
     95     <dd>Use this step-by-step guide to start incorporating in-app billing into your
     96     application. The instructions apply to both one-time and subscription purchases.</dd>
     97     
     98     <dt><strong><a href="{@docRoot}guide/google/play/billing/billing_subscriptions.html">Subscriptions</a></strong></dt>
     99     <dd>Learn how subscriptions work and how to implement support for them in your app.</dd>
    100   <dt><strong><a href="{@docRoot}guide/google/play/billing/billing_best_practices.html">Security
    101   and Design</a></strong></dt>
    102     <dd>Review these best practices to help ensure that your in-app billing implementation is
    103     secure and well designed.</dd>
    104   <dt><strong><a href="{@docRoot}guide/google/play/billing/billing_testing.html">Testing In-app
    105   Billing</a></strong></dt>
    106     <dd>Understand how the in-app billing test tools work and learn how to test your in-app billing
    107     implementation.</dd>
    108   <dt><strong><a href="{@docRoot}guide/google/play/billing/billing_admin.html">Administering
    109   In-app Billing</a></strong></dt>
    110     <dd>Learn how to set up your product list, register test accounts, and handle refunds.</dd>
    111   <dt><strong><a href="{@docRoot}guide/google/play/billing/billing_reference.html">In-app Billing
    112   Reference</a></strong></dt>
    113     <dd>Get detailed information about Google Play response codes and the in-app billing
    114     interface.</dd>
    115 </dl>
    116 
    117