eggheadgames / android-in-app-payments

Support Android Google Play and Amazon in-app billing (IAP) payments with one API
MIT License
58 stars 14 forks source link

handling product owned IAP billing response, closes#8 #9

Closed yurii-diachenko closed 7 years ago

yurii-diachenko commented 7 years ago

Attempt to handle ALREADY_OWNED response. Had to cache requested SKU and product type, because IAP billing doesn't retrurn product info upon ALREADY_OWNED response.

yurii-diachenko commented 7 years ago

@mikemee I was able to reproduce it. I opened applciation on devices that have my Google account. I bought an item from one application and then tried to buy the same item on second device.

mikemee commented 7 years ago

I was able to reproduce it. I opened applciation on devices that have my Google account. I bought an item from one application and then tried to buy the same item on second device.

I wonder how much we can tell from this though. I've done this same test before, and sometimes it works and sometimes it fails. It seems that it is hard to predict when Google Play updates on the 2nd device. I guess if it still failed after you updated to1.2.8, then that would be a sign that the code isn't working...