My first venture into IAPv3 isn’t going so well. I’ve got an apk with release key in draft, several IAP’s active, the base64 RSA key in config.lua, the v3 plugin and all necessary permissions in build.settings, etc… at least I think everything is “built”/“setup” right.
Early on I was having some trouble with “product not available” errors, (probably just propogation delay), so did a test against android.test.purchased - which sort of worked, but I think it has somehow “gunked up” the system.
Per table 1 here: http://developer.android.com/google/play/billing/billing_testing.html
I think being myself (the developer) should have given me a signed response
for a draft, but appears not (from logcat).
Seems like a ghost of that test transaction is coming back to haunt me each time I run now.
Wondering if this issue is related?
https://code.google.com/p/marketbilling/issues/detail?id=150
Anyway, here’s the logcat immediately following store.init(), any ideas??
(the I/Corona stuff near end starting with a “@@@” is from a “print_r(event)” in my listener, the rest is all internal stuff)
D/IabHelper(22963): Starting in-app billing setup. D/IabHelper(22963): Billing service connected. D/IabHelper(22963): Checking for in-app billing 3 support. D/Finsky (21711): [1306] InAppBillingUtils.getPreferredAccount: org.davebolling er.eggheadzbounce: Account from first account - [bIRQyjloG5QEKXVsmC0XD0y8ERo] D/IabHelper(22963): In-app billing version 3 supported for org.davebollinger.egg headzbounce D/Finsky (21711): [1281] InAppBillingUtils.getPreferredAccount: org.davebolling er.eggheadzbounce: Account from first account - [bIRQyjloG5QEKXVsmC0XD0y8ERo] D/IabHelper(22963): Subscriptions AVAILABLE. D/dchan (22963): Setup successful. (response: 0:OK) D/IabHelper(22963): Starting async operation: refresh inventory D/dchan (22963): Inventory refresh successful. (response: 0:OK) D/IabHelper(22963): Querying owned items, item type: inapp D/IabHelper(22963): Package name: org.davebollinger.eggheadzbounce D/IabHelper(22963): Calling getPurchases with continuation token: null D/Finsky (21711): [1282] InAppBillingUtils.getPreferredAccount: org.davebolling er.eggheadzbounce: Account from first account - [bIRQyjloG5QEKXVsmC0XD0y8ERo] D/Finsky (21711): [1282] InAppBillingUtils.getPreferredAccount: org.davebolling er.eggheadzbounce: Account from first account - [bIRQyjloG5QEKXVsmC0XD0y8ERo] D/IabHelper(22963): Owned items response: 0 E/IABUtil/Security(22963): Purchase verification failed: missing data. W/IabHelper(22963): In-app billing warning: Purchase signature verification \*\*FA ILED\*\*. Not adding item. D/IabHelper(22963): Purchase data: {"packageName":"org.davebollinger.eggheadz bounce","orderId":"transactionId.android.test.purchased","productId":"android.te st.purchased","developerPayload":"","purchaseTime":0,"purchaseState":0,"purchase Token":"inapp:org.davebollinger.eggheadzbounce:android.test.purchased"} D/IabHelper(22963): Signature: D/IabHelper(22963): Continuation token: null D/dchan (22963): Error refreshing inventory (querying owned items). (response: -1003:Purchase signature verification failed) D/IabHelper(22963): Ending async operation: refresh inventory W/dalvikvm(22963): threadid=14: thread exiting with uncaught exception (group=0x 418b0ba8) E/AndroidRuntime(22963): FATAL EXCEPTION: Thread-1359 E/AndroidRuntime(22963): Process: org.davebollinger.eggheadzbounce, PID: 22963 E/AndroidRuntime(22963): java.lang.NullPointerException E/AndroidRuntime(22963): at plugin.google.iap.v3.LuaLoader$6.onQueryInven toryFinished(LuaLoader.java:360) E/AndroidRuntime(22963): at plugin.google.iap.v3.util.IabHelper$2.run(Iab Helper.java:633) E/AndroidRuntime(22963): at java.lang.Thread.run(Thread.java:841) I/Corona (22963): @@@ onStoreTransaction, event= I/Corona (22963): table: 0x68b73370 { I/Corona (22963): [name] =\> "storeTransaction" I/Corona (22963): [transaction] =\> table: 0x68b73370 { I/Corona (22963): [state] =\> "failed" I/Corona (22963): [errorString] =\> "Error refreshing inven tory (querying owned items). (response: -1003:Purchase signature verification fa iled)" I/Corona (22963): [isError] =\> true I/Corona (22963): [errorType] =\> -1003 I/Corona (22963): } I/Corona (22963): } I/Corona (22963): Transaction failed, type: -1003 Error refreshing invento ry (querying owned items). (response: -1003:Purchase signature verification fail ed) W/ActivityManager( 517): Force finishing activity org.davebollinger.eggheadzb ounce/com.ansca.corona.CoronaActivity