Interesting… our Google in-app purchase system was one of our features that worked perfectly on the first shot and we’ve never had to touch the code since we’ve introduced it. Now it sounds like something has suddenly broke or Google has changed something on their end that we have to add support for.
Currently, there is no one available to look into these issues this week. So, I’m going to have to ask you guys to provide us some more details until and isolate the issues until we do have time. We should have time to look at this next week.
So, I’m seeing two issues on this thread:
- Restores are not working.
- The transaction Lua listener is getting called twice per transaction.
Regarding restores, you will never get a “restore” transaction state with Google Play. That is normal. Every product purchased in the past will come across as new purchases in your Lua listener. This is because the notifications received from Google Play do not distinguish if they are restored purchases or not. That’s just the way Google made it. So, I’ll have to ask you to verify that your Lua listener is actually receiving all of the expected transactions as new purchases and report back.
Regarding purchases, does our sample app “Networking/InAppPurchase” that is included with the Corona SDK work correctly? Note that it is set up so that only the top button will provide a successful purchase and the other buttons were designed to test “canceled” and “item-unavailable” purchases. So, when you attempt a purchase, does it succeed? Or do you get a success transaction that is quickly followed by an error? ie: You Lua listener is getting called twice for one purchase.
Again, any additional information you can provide here will help us provide a quicker turnaround on our end. Thanks in advance.
[import]uid: 32256 topic_id: 29859 reply_id: 133916[/import]