From 683db3037a5ecf140d3744455180916fd4c2c3b2 Mon Sep 17 00:00:00 2001 From: Kevin Hufnagle Date: Mon, 20 Jun 2016 16:44:08 -0700 Subject: [PATCH] docs: Noted that orderId is blank for all test purchases. All test purchases associated with Google Play apps---both one-time and subscription---now contain a blank "orderId" field. Updated the documentation accordingly. Also removed the explanation about canceling test purchases using the merchant center; a lack of an "orderId" value prevents this workflow from being possible anymore. Bug: 29068371 Change-Id: I748989c404549769eefd44afa3a7cc125f2e7073 --- docs/html/google/play/billing/billing_admin.jd | 9 +++++ docs/html/google/play/billing/billing_testing.jd | 44 ++++++++---------------- 2 files changed, 24 insertions(+), 29 deletions(-) diff --git a/docs/html/google/play/billing/billing_admin.jd b/docs/html/google/play/billing/billing_admin.jd index a1135bfbb919..05f3ad593b9d 100644 --- a/docs/html/google/play/billing/billing_admin.jd +++ b/docs/html/google/play/billing/billing_admin.jd @@ -747,6 +747,15 @@ you at the conclusion of the purchase flow, as the value of the orderId field of the PURCHASE_STATE_CHANGED intent.

+

+ Note: When a user completes a test purchase, the + orderId field remains blank. To track test transactions, use + the purchaseToken field instead. For more information about + working with test purchases, see Testing In-app + Billing. +

+

In your app, you can use the order number as a general-purpose identifier for the in-app purchase transaction. After the purchase, you can use the order number as a means of tracking the transaction in reconciliation reports and for diff --git a/docs/html/google/play/billing/billing_testing.jd b/docs/html/google/play/billing/billing_testing.jd index 018276defb84..755f3ffd6220 100644 --- a/docs/html/google/play/billing/billing_testing.jd +++ b/docs/html/google/play/billing/billing_testing.jd @@ -79,14 +79,11 @@ launch. They let authorized user accounts make purchases of your in-app products through Google Play without incurring any actual charges to the user accounts.

-

Once authorized for testing access, those users can make purchases without -being charged. -Test purchases are real orders and Google Play processes them in the same way as -other orders. However, the orderId field for test purchases is -blank. -When purchases are complete, Google Play prevents the orders from -going to financial processing, ensuring that there are no actual charges to user -accounts, and automatically canceling the completed orders after 14 days.

+

+ Once authorized for testing access, those users can make purchases without + being charged. The orderId field for test purchases remains + blank, ensuring that there are no actual charges to user accounts. +

Note: Test subscription purchases recur daily, regardless of @@ -130,8 +127,8 @@ account. Users can confirm the account that is making a purchase by expanding th purchase dialog.

- Note: For test subscription purchases, leave the {@code orderId} - field blank. You can use the {@code purchaseToken} field to identify test purchases. + Note: For test purchases, leave the {@code orderId} field + blank. You can use the {@code purchaseToken} field to identify test purchases.

@@ -150,33 +147,22 @@ with a notice across the center of the purchase dialog, for easy identification.

Canceling completed test purchases

Google Play accumulates completed test purchases for each user but does not -pass them on to financial processing. Over time, it automatically clears out -the purchases by canceling them.

+pass them on to financial processing.

In some cases, you might want to manually cancel a test purchase to continue -testing. For canceling purchases, you have these options:

- - -

- You can cancel test subscriptions purchases from the app page in the Play Store, - or use the - - {@code cancel} method. -

-

Important: The - {@code refund} and + {@code refund()} and - {@code revoke} methods do not support test purchases. + {@code revoke()} methods of the Purchases.subscriptions API don't support + test purchases.

-- 2.11.0