Restore doesn't know that purchase was already cancelled

Hi,

I’m facing a disturbing issue with Google Play IAP (the v3 plugin). I called the “purchase” method for my product, and I purchased the item in Google Play. Everything was fine here.

Then I went to my Google Wallet account and cancelled the order. I received an email confirming the cancellation and everything.

Now, I opened my app again and I clicked my “Restore” button which calls the “restore” method and my callback still gets called with a “purchased” state instead of “refunded” or “failed”. 

In the case where I restore purchases, how can I tell that the product was actually cancelled/refunded?

Thanks,

George

EDIT: I should mention that this product is set up as a managed product in Google Play.

EDIT #2: In my other device, calling “restore” correctly does not retrieve any transactions. So, only on the device where I made the purchase, it still thinks there’s a purchase when there’s not.

Using the same device on which I purchased the item (but then cancelled) I tried purchasing the same item again. This is what the log is showing:

12-05 14:40:36.094    3997-4022/? I/Corona﹕ IAP: Unlocking game... 12-05 14:40:36.234  15258-32315/? D/Finsky﹕ [99882] InAppBillingUtils.pickAccount: com.squadventure.LostChapterLite: Account determined from installer data - [gjRUHasUIABRpS69HigjiAJSasllsMt4] 12-05 14:40:36.234    3997-4022/? E/IabHelper﹕ In-app billing error: Unable to buy item, Error response: 7:Item Already Owned

What is going on here? Why does this device still think that I own the canceled item? I tried purchasing the item from my other device (same account), and it does show the purchasing popup window.

And a related question, how do I detect the above error? I don’t get the transaction callback called with a “failed” state.

Any help will be appreciated.

EDIT: I tried uninstalling the app, and reinstalling it, but that didn’t help. It still thinks I own that product.

Using the same device on which I purchased the item (but then cancelled) I tried purchasing the same item again. This is what the log is showing:

12-05 14:40:36.094    3997-4022/? I/Corona﹕ IAP: Unlocking game... 12-05 14:40:36.234  15258-32315/? D/Finsky﹕ [99882] InAppBillingUtils.pickAccount: com.squadventure.LostChapterLite: Account determined from installer data - [gjRUHasUIABRpS69HigjiAJSasllsMt4] 12-05 14:40:36.234    3997-4022/? E/IabHelper﹕ In-app billing error: Unable to buy item, Error response: 7:Item Already Owned

What is going on here? Why does this device still think that I own the canceled item? I tried purchasing the item from my other device (same account), and it does show the purchasing popup window.

And a related question, how do I detect the above error? I don’t get the transaction callback called with a “failed” state.

Any help will be appreciated.

EDIT: I tried uninstalling the app, and reinstalling it, but that didn’t help. It still thinks I own that product.