bhavikpokar1993 / marketbilling

Automatically exported from code.google.com/p/marketbilling
0 stars 0 forks source link

Cancelled purchase still shows as purchased on device #94

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I'm trying to test the end-to-end process for managed in app purchases with 
Version 3 API.  I set up a test account and uploaded my APK as a draft.  I went 
through the process of making the purchase and everything appeared to work as 
expected.  I saw the purchase both in my Google Checkout account and as a 
pending charge on my test account's credit card.

I next cancelled the order in my Google Checkout account.  The test account's 
credit card shows a pending refund.  However, when I call getPurchases() in my 
application it still reports the sku as being purchased.  Shouldn't it return 
as cancelled?  Is there some delay before this pushes though?  I noticed the 
sample code doesn't even check the value of Purchase.getPurchaseState(), but 
when I do on my device it always returns 0, and the docs indicate it should 
return 0 for purchased, 1 for cancelled, and 2 for refunded.  What am I missing?

AFFECTED ORDER IDS (IF RELEVANT):
745072421241057

OS VERSION:
4.0.4

MARKET/MYAPPS VERSION:
3.10.10

DEVICE:
Samsung Galaxy Tab 2 10.1

Original issue reported on code.google.com by psie...@dancingsorcerer.com on 12 Jan 2013 at 5:53

GoogleCodeExporter commented 8 years ago
Ah, now I see issues #88 and #92 both refer to this same problem.  I guess at 
least I'm not the only one.

Original comment by psie...@dancingsorcerer.com on 12 Jan 2013 at 6:00

GoogleCodeExporter commented 8 years ago
This appears to be a problem with the store's local cache.  I tested my 
application on another device using the same accounts, and the item correctly 
shows as not being purchased.

Original comment by psie...@dancingsorcerer.com on 12 Jan 2013 at 6:15

GoogleCodeExporter commented 8 years ago

Original comment by b...@google.com on 5 Feb 2013 at 1:34