We have now got a similar problem. We tried to make a purchase - a real product using a test account, we did not use one of the android test ids.
The Google Popup box appeared, we both entered our passwords as normal, and got the “this is a test purchase you will not be charged etc” message. When we pressed ok, the application crashed and stopped responding.
We think this crash may have happened because we had the wrong googlePlayGamesAppId in our build.settings.
However now if we try to call store.loadProducts we get the following error:
error refreshing inventory (querying owned items). (response: -1003:Purchase signature verification failed)
We’ve looked up this error, and every link I see says that someone tried to make a test purchase using android.test.purchased, which we did not do.
I then found this topic, which says that we need to use store.consumePurchase({transaction.productIdentifier}). We’ve been using that for months already in one of our other apps which use exactly the same lua file that we are using now to handle all store functions. However we don’t seem to be able to call consumePurchase any more (since the failed purchase nothing in the store works) so we can’t consume the offending item.
Can anyone help us out with this at all? We’re pulling our hair out trying to solve this before submitting.
Edit: this is the returned data we get when making the first purchase
D/IabHelper(20893): Starting async operation: refresh inventory D/dchan (20893): Inventory refresh successful. (response: 0:OK) D/IabHelper(20893): Querying owned items, item type: inapp D/IabHelper(20893): Package name: com.my.game D/IabHelper(20893): Calling getPurchases with continuation token: null D/Finsky (17292): [798] InAppBillingUtils.getPreferredAccount: com.my.game: Account from first account - [hz0AOjMW0S\_KNSX3z-B9OZxAwkE] D/Finsky (17292): [798] InAppBillingUtils.getPreferredAccount: com.my.game: Account from first account - [hz0AOjMW0S\_KNSX3z-B9OZxAwkE] D/IabHelper(20893): Owned items response: 0 E/IABUtil/Security(20893): Signature verification failed. W/IabHelper(20893): In-app billing warning: Purchase signature verification \*\*FAILED\*\*. Not adding item. D/IabHelper(20893): Purchase data: {"orderId":"12999763169054705758.1399594758502571","packageName":"com.my.game","productId":"my.game.consumableone","purchaseTime":1401295204051,"purchaseState":0,"purchaseToken":"lotsOfCharacters"} D/IabHelper(20893): Signature: aLongSignatureStringLikeWeWouldNormallySee== D/IabHelper(20893): Continuation token: null D/dchan (20893): Error refreshing inventory (querying owned items). (response: -1003:Purchase signature verification failed) D/IabHelper(20893): Ending async operation: refresh inventory W/dalvikvm(20893): threadid=18: thread exiting with uncaught exception (group=0x41d02e18) I/Corona (20893): [IAP] event.transaction.state: failed I/Corona (20893): [IAP] event.transaction.date: nil I/Corona (20893): [IAP] event.transaction.identifier: nil I/Corona (20893): [IAP] event.transaction.productIdentifier: nil I/Corona (20893): [IAP] in failed I/Corona (20893): [IAP] event.transaction.errorType: -1003 I/Corona (20893): [IAP] event.transaction.errorString: Error refreshing inventory (querying owned items).
E/ActivityManager( 917): App crashed! Process: com.my.game E/AndroidRuntime(20893): FATAL EXCEPTION: Thread-1035 E/AndroidRuntime(20893): Process: com.my.game, PID: 20893 E/AndroidRuntime(20893): java.lang.NullPointerException E/AndroidRuntime(20893): at plugin.google.iap.v3.LuaLoader$6.onQueryInventoryFinished(LuaLoader.java:360) E/AndroidRuntime(20893): at plugin.google.iap.v3.util.IabHelper$2.run(IabHelper.java:633) E/AndroidRuntime(20893): at java.lang.Thread.run(Thread.java:864) W/ActivityManager( 917): Force finishing activity com.my.game/com.ansca.corona.CoronaActivity
As I say, after the first attempt + crash, the next time you open the app the store will not load.