<p>This method returns a response code integer mapped to the {@code RESPONSE_CODE} key, and a {@code PendingIntent} to launch the puchase flow for the in-app item mapped to the {@code BUY_INTENT} key. When it receives the {@code PendingIntent}, Google Play sends a response {@code Intent} with the data for that purchase order. The data that is returned in the response {@code Intent} is summarized in table 3.</p>
<p>
This method returns a response code integer mapped to the {@code
RESPONSE_CODE} key, and a {@link android.app.PendingIntent} to launch the
purchase flow for the in-app item mapped to the {@code BUY_INTENT} key, as
described in <a href=
"{@docRoot}google/play/billing/billing_integrate.html#purchase">Purchasing an
Item</a>. When it receives the {@link android.app.PendingIntent}, Google Play
sends a response {@code Intent} with the data for that purchase order. The
data that is returned in the response {@code Intent} is summarized in table
@@ -14,6 +14,16 @@ and features, and more. You can use In-app Billing to sell products as</p>
<div class="sidebox">
<h2><strong>New in In-App Billing</strong></h2>
<ul>
<li><strong>Subscription Upgrade/Downgrade</strong>—A user can
subscribe to a higher or lower tier of subscription while their current
subscription is active. The old subscription is canceled, and the unused
portion is applied on a pro-rated basis to the new subscription.</li>
<li><strong>Manual Subscription Renewal</strong>—A user can purchase
a subscription at the current rate while their existing subscription is
still active. The existing subscription is extended by the appropriate
period.</li>
<li><strong>IAB Sandbox</strong>—The In-app Billing Sandbox now supports
testing subscription purchases.</li>
<li><strong>IAB v2 shutdown</strong>—In-app Billing v2 API is deprecated and will be shut down in January 2015. If your app is still using In-app Billing v2, please migrate to the v3 API as soon as possible.</li>
<li><strong>Seasonal subscriptions</strong>—You can now set up a
@@ -35,7 +45,6 @@ and features, and more. You can use In-app Billing to sell products as</p>
subscription ends
immediately, and his or her most recent subscription payment is
refunded.</li>
<li><strong>In-app Billing Version 3</strong>—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>
@@ -11,10 +11,30 @@ page.title=In-app Billing Version Notes
<p>At run time, your app can query the Google Play Store app to determine what version of the API it supports and what features are available. </p>
<ul>
<li>If you are using in-app billing version 3, the version information is not directly returned the Google Play. Instead, you can check if Google Play supports the version of the In-app Billing API that you are using by sending a {@code isBillingSupported} request.</li>
<li>If you are using in-app billing version 3 or later, the version information
is not directly returned by Google Play. Instead, you can check if Google Play
supports the version of the In-app Billing API that you are using by sending an
{@code isBillingSupported} request.</li>
<li>If the In-app Billing API version that you are using is earlier than version 3, the version information is returned in the <code>API_VERSION</code> key of the Bundle object passed in the {@code sendBillingRequest} method. For more information, see <a href="{@docRoot}google/play/billing/v2/billing_reference.html#billing-interface-v2">In-app Billing Service Interface</a>.</li>
</ul>
<h3 id="version_5">In-app Billing version 5</h3>
<p><em>February 2015</em></p>
<ul>
<li>A user can manually extend an existing subscription. The subscription
is extended by the appropriate amount of time.</li>
<li>A user can upgrade or downgrade a subscription while it is active. The
old subscription is canceled, and the unused portion is applied on a pro-rata
basis to the new subscription.</li>
</ul>
<h3 id="version_4">In-app Billing version 4</h3>
<p>Version 4 of the In-app Billing API did not introduce any public