IAP Android returns "failed" for already purchased?

Hi, I just tested my actual store item and it worked great.

I tried it again and Google play tells me “You already own this item”. This is a managed item, and if I read correctly the store is suppose to return “purchased” if you try buying something you already own (ie. fresh install).

However, the response my app gets is a “failed” state.

So is this just happening because my app is still in testing? Will it give a proper “purchased” message when published? Or what am I missing?

Thanks [import]uid: 31506 topic_id: 36515 reply_id: 336515[/import]

I believe that if you try to purchase something you’ve already purchased, you should get a failed state. The way you deal with restoring previous purchases on a re-install is to call store.restore(). On iOS, this returns a restored state, but on Android, it comes in like a new purchase. You just have to program your “restore” to recognize purchases as being different from real purchases.

[import]uid: 199310 topic_id: 36515 reply_id: 144808[/import]

I believe that if you try to purchase something you’ve already purchased, you should get a failed state. The way you deal with restoring previous purchases on a re-install is to call store.restore(). On iOS, this returns a restored state, but on Android, it comes in like a new purchase. You just have to program your “restore” to recognize purchases as being different from real purchases.

[import]uid: 199310 topic_id: 36515 reply_id: 144808[/import]

I believe that if you try to purchase something you’ve already purchased, you should get a failed state. The way you deal with restoring previous purchases on a re-install is to call store.restore(). On iOS, this returns a restored state, but on Android, it comes in like a new purchase. You just have to program your “restore” to recognize purchases as being different from real purchases.

[import]uid: 199310 topic_id: 36515 reply_id: 144808[/import]

I believe that if you try to purchase something you’ve already purchased, you should get a failed state. The way you deal with restoring previous purchases on a re-install is to call store.restore(). On iOS, this returns a restored state, but on Android, it comes in like a new purchase. You just have to program your “restore” to recognize purchases as being different from real purchases.

[import]uid: 199310 topic_id: 36515 reply_id: 144808[/import]