Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
230 views
in Technique[技术] by (71.8m points)

android - In-App Billing v3 - Don't detect refund

I've followed the training about "In-App Billing v3" of Google. I get to do a buy of a item but I've a problem.

https://developer.android.com/training/in-app-billing/index.html

I've canceled and refunded the buy but the app detect the buy as true. I can't continue testing my app because always I detect as purchased the item.

The only error that I've found in logCat is the next:

[3687] InAppBillingService.logResponseBundle: Bundle does not contain a response code

Appears after launching mHelper.queryInventoryAsync(mGotInventoryListener).

Any idea?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

p.s. - this suggests it just takes time for the refund to be updated

http://code.google.com/p/marketbilling/issues/detail?id=88#makechanges

But I'm not convinced - I realise they're caching purchase data on the device but 24h is a long time...

Updated to add that more than 24 hours after I cancelled 'test' transactions, those accounts are still licensed!!

Updated again - after 36 hours the app was STILL licensed. I uninstalled and reinstalled and it was STILL licensed!!

Updated AGAIN! - I factory-reset the device, logged-in, installed the app and it was unlicensed...

AND another update - a reply from Google suggests that refunds are processed 'automatically' but can take 'upto 72 hours' to be refreshed on the device - there is no other route to detect a refund, so players get upto 3 days of stuff 'for free' if they refund - erm, OK this is In-App and not App purchase but still, that seems a BIT excessive?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

57.0k users

...