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/market/billing/billing_overview.html">Overview of In-app
     10     Billing</a></li>
     11     <li><a href="{@docRoot}guide/market/billing/billing_integrate.html">Implementing In-app
     12     Billing</a></li>
     13     <li><a href="{@docRoot}guide/market/billing/billing_best_practices.html">Security and
     14     Design</a></li>
     15     <li><a href="{@docRoot}guide/market/billing/billing_testing.html">Testing In-app
     16     Billing</a></li>
     17     <li><a href="{@docRoot}guide/market/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/market/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/market/billing/billing_integrate.html#billing-download">Sample
     28     Application</a></li>
     29   </ol>  
     30 </div>
     31 </div>
     32 
     33 <p>Google Play In-app Billing is a Google Play service that lets you sell digital content in
     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, and virtual content such as game levels or potions.</p>
     36 
     37 <p>When you use Google Play's in-app billing service to sell an item, Google Play handles all
     38 checkout details so your application never has to directly process any financial transactions.
     39 Google Play uses the same checkout service that is used for application purchases, so your users
     40 experience a consistent and familiar purchase flow (see figure 1). Also, the transaction fee for
     41 in-app purchases is the same as the transaction fee for application purchases (30%).</p>
     42 
     43 <p>Any application that you publish through Google Play can implement in-app billing. No special
     44 account or registration is required other than a Google Play app publisher account and a Google
     45 Checkout Merchant account. Also, because the service uses no dedicated framework APIs, you can add
     46 in-app billing to any application that uses a minimum API level of 4 or higher.</p>
     47 
     48 <p>To help you integrate in-app billing into your application, the Android SDK provides a sample
     49 application that demonstrates a simple implementation of in-app billing. The sample application
     50 contains examples of billing-related classes you can use to implement in-app billing in your
     51 application. It also contains examples of the database, user interface, and business logic you might
     52 use to implement in-app billing.</p>
     53 
     54 <p class="caution"><strong>Important</strong>: Although the sample application is a working example
     55 of how you can implement in-app billing, we <em>strongly recommend</em> that you modify and
     56 obfuscate the sample code before you use it in a production application. For more information, see
     57 <a href="{@docRoot}guide/market/billing/billing_best_practices.html">Security and Design</a>.</p>
     58 
     59 <img src="{@docRoot}images/billing_checkout_flow.png" height="382" id="figure1" />
     60 <p class="img-caption">
     61   <strong>Figure 1.</strong> Applications initiate in-app billing requests through their own UI
     62   (first screen). Google Play responds to the request by providing the checkout user interface
     63   (middle screen). When checkout is complete, the application resumes.
     64 </p>
     65 
     66 <p>To learn more about Google Play's in-app billing service and start integrating it into your
     67 applications, read the following documents:</p>
     68 
     69 <dl>
     70   <dt><strong><a href="{@docRoot}guide/market/billing/billing_overview.html">Overview of In-app
     71   Billing</a></strong></dt>
     72     <dd>Learn how the service works and what a typical in-app billing implementation looks
     73     like.</dd>
     74   <dt><strong><a href="{@docRoot}guide/market/billing/billing_integrate.html">Implementing
     75   In-app Billing</a></strong></dt>
     76     <dd>Use this step-by-step guide to start incorporating in-app billing into your
     77     application.</dd>
     78   <dt><strong><a href="{@docRoot}guide/market/billing/billing_best_practices.html">Security
     79   and Design</a></strong></dt>
     80     <dd>Review these best practices to help ensure that your in-app billing implementation is
     81     secure and well designed.</dd>
     82   <dt><strong><a href="{@docRoot}guide/market/billing/billing_testing.html">Testing In-app
     83   Billing</a></strong></dt>
     84     <dd>Understand how the in-app billing test tools work and learn how to test your in-app billing
     85     implementation.</dd>
     86   <dt><strong><a href="{@docRoot}guide/market/billing/billing_admin.html">Administering
     87   In-app Billing</a></strong></dt>
     88     <dd>Learn how to set up your product list, register test accounts, and handle refunds.</dd>
     89   <dt><strong><a href="{@docRoot}guide/market/billing/billing_reference.html">In-app Billing
     90   Reference</a></strong></dt>
     91     <dd>Get detailed information about Google Play response codes and the in-app billing
     92     interface.</dd>
     93 </dl>
     94 
     95