Skip to content

Commit afc270b

Browse files
author
Bill Gruber
committed
IAB Doc Fix: Error in code snippet
Bug 5221766 Change-Id: I7af624ed69526b545c97d1419e08f60c92b79d8e
1 parent d5897dc commit afc270b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/html/guide/market/billing/billing_integrate.jd

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ key can have the following five values:</p>
476476
<ul>
477477
<li><code>CHECK_BILLING_SUPPORTED</code>&mdash;verifies that the Android Market application
478478
supports in-app billing.</li>
479-
<li><code>REQUEST_PURCHASE</code>&mdash;sends a purchase request for an in-app item.</li>
479+
<li><code>REQUEST_PURCHASE</code>&mdash;sends a purchase request for an in-app item.</li>
480480
<li><code>GET_PURCHASE_INFORMATION</code>&mdash;retrieves transaction information for a purchase
481481
or refund.</li>
482482
<li><code>CONFIRM_NOTIFICATIONS</code>&mdash;acknowledges that you received the transaction
@@ -584,9 +584,9 @@ interface.</p>
584584
// Note that the developer payload is optional.
585585
if (mDeveloperPayload != null) {
586586
request.putString(DEVELOPER_PAYLOAD, mDeveloperPayload);
587+
}
587588
Bundle response = mService.sendBillingRequest(request);
588589
// Do something with this response.
589-
}
590590
</pre>
591591
<p>The <code>makeRequestBundle()</code> method constructs an initial Bundle, which contains the
592592
three keys that are required for all requests: <code>BILLING_REQUEST</code>,
@@ -930,17 +930,17 @@ sent in response to billing requests.</p>
930930

931931
<pre>
932932
public class BillingReceiver extends BroadcastReceiver {
933-
933+
934934
private static final String TAG = "BillingReceiver";
935-
935+
936936
// Intent actions that we receive in the BillingReceiver from Android Market.
937937
// These are defined by Android Market and cannot be changed.
938938
// The sample application defines these in the Consts.java file.
939939
public static final String ACTION_NOTIFY = "com.android.vending.billing.IN_APP_NOTIFY";
940940
public static final String ACTION_RESPONSE_CODE = "com.android.vending.billing.RESPONSE_CODE";
941941
public static final String ACTION_PURCHASE_STATE_CHANGED =
942942
"com.android.vending.billing.PURCHASE_STATE_CHANGED";
943-
943+
944944
// The intent extras that are passed in an intent from Android Market.
945945
// These are defined by Android Market and cannot be changed.
946946
// The sample application defines these in the Consts.java file.

0 commit comments

Comments
 (0)