I’m finishing up a sequel to an earlier game I developed. The new game builds on the code of the earlier game. The earlier game had consumable in app purchases, but in the new game I want both consumable and one-time purchases.
My game has two scenes, the main menu scene and the game scene and they are in two different lua files.
I copied the functionality of the consumable purchases in the game scene and everything worked fine. I tested purchases and they worked.
I then added code to the main menu scene to handle purchases there (for my new one-time purchase). I had to make a few tweaks and I accidentally left out the call to store.loadproducts.
When I tested, I got the prompt to purchase the item (which is strange, considering I never loadedproducts). I confirmed the purchase but, back in my game, it acted as if it never got confirmation and I did not unlock the in-game content. When I check Order Management in the Google Play console, there is no record of the purchase.
I then added the call to store.loadproducts in my code but now I seem to have a new problem. With this test account, in this game, I can not make any in-app purchases. The purchase request is made but the google play store does not respond and no prompt is presented to the user. This is true even for the iap inside the game scene, which had previously worked.
It seems as if the incomplete transaction is blocking any further transactions.
Is this possible and is there any way to clear the problem?