You tested your Android IAP (in-app-purchase) and found out something in your code is broken. After you fixed the code, trying to test IAP again, Android shows an alert telling you nothing but “Item Already Owned”.
Delete Purchase is Something You Must Face
This “Item already owned” alert is shown when try to re-purchasing a non-consumable item, or a consumable item that did not consume properly in last purchase.
Don’t panic! Let me show you how to delete purchase transaction! (Some may argue that one can switch to another test account to test the IAP, but you know, quite a number of accounts is needed if the code keep on having problems…)
Delete Purchase Transactions on both Server and Device
1. Cancel purchase order in Google Merchants (Server side)
2. Clear transaction cache in your Android device (Client side)
Cancel The Purchase Order
Go to Google Wallet (use your developer account, NOT tester account).
While waiting for the status turn to “Will not Deliver”, you can start the next important step: clearing the transaction cache on the Android device, which will make use of Android Debug Bridge.
Clear Transaction Cache
Connect your device to your computer with a USB cable.
Find adb.exe* in your computer (if not have one, you have to install the Android SDK).