Implementing Google IAP was a cinch since most of the code for Apple IAP could be used. Thanks Ancsa!
I’ve managed to get everything working on Android, however there are a few issues that might need to be addressed.
First, when calling store.restore(), I noticed that the transaction state returned in the callback when using Google is “purchased” and not “restored” as I had expected. Apple returns “restored”. Is this a bug or is it just how Google handles the transaction?
Secondly, there’s a scenario that isn’t handled when using restore with the Apple IAP as well.
If you call store.restore() using an AppleID that hasn’t purchased an IAP product, the callback function is never called. I would expect the callback to be called even if there are no products to be restored.
This scenario is very likely to happen when providing a Restore button in an app. Some users will try to restore even if they know they haven’t purchased an IAP product, and this needs to be handled by the app somehow.
Third, when and how is the “refunded” state returned for Google transactions?
Other than this, everything is working really well…
[import]uid: 70847 topic_id: 23202 reply_id: 323202[/import]