Google IAP Error

Hello ,

I am testing a beta version of the Game and getting this exception in my log…
 

=========================

08-20 13:32:13.030 23297-23323/? E/Corona: ProductListRuntimeTask: dispatching Google IAP productList event                                            com.naef.jnlua.LuaRuntimeException: ?:0: attempt to get length of field 'products' (a nil value)                                                at com.naef.jnlua.LuaState.lua\_pcall(Native Method)                                                at com.naef.jnlua.LuaState.call(Unknown Source)                                                at com.ansca.corona.CoronaLua.dispatchEvent(CoronaLua.java:138)                                                at plugin.google.iap.v3.ProductListRuntimeTask.executeUsing(ProductListRuntimeTask.java:119)                                                at com.ansca.corona.CoronaRuntimeTaskDispatcher$TaskEvent.Send(CoronaRuntimeTaskDispatcher.java:170)                                                at com.ansca.corona.events.EventManager.sendEvents(EventManager.java:91)                                                at com.ansca.corona.Controller.updateRuntimeState(Controller.java:308)                                                at com.ansca.corona.graphics.opengl.CoronaGLSurfaceView$CoronaRenderer.onDrawFrame(CoronaGLSurfaceView.java:421)                                                at com.ansca.corona.graphics.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1623)                                                at com.ansca.corona.graphics.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1378)

========================================

— Looks like something is wrong when loading IAP products…

— I can not Buy any IAP , When i call store.purchase() method then i get this log

================

08-19 12:03:33.126 7817-7847/? I/Corona: ||$|In transactionCallback failed 08-19 12:03:33.126 7817-7847/? I/Corona: ||$|state=failed 08-19 12:03:33.126 7817-7847/? I/Corona: ||$|Transaction failed, type: 6 Error consuming sku gb0050 (response: 6:Error)

================

— It was working fine before few days ago…

— Owner of this App is from US and he also has beta version on his device…But it’s strange that he is not getting this exception in his log

Some more details…I found :

When i try to purchase $2.99 product then got this log :

||$|In transactionCallback failed 08-20 13:50:48.143 23297-23323/? I/Corona: ||$|state=failed 08-20 13:50:48.143 23297-23323/? I/Corona: ||$|Transaction failed, type: 6 Error refreshing inventory (querying prices of items). (response: 6:Error) nil

But when i try to $4.99 then working fine…

Google play payment popup open and i can see message there that “This is test purchase , it will not charge you”

 

Please can any one help me to solve this bug.

Thank you.

Can you tell us a bit more about your situation.

What version of Corona are you building with?

When was the last version that worked built?

Are you calling the .loadProducts() method in main.lua right after you call .init()?

Thanks

Rob

Hi Rob,

Thank you so much for your Quick response.
We have changed almost all the code for IAP and this issue is solved now.
But I am not sure about the solution.

Thank you again.

Can you tell us a bit more about your situation.

What version of Corona are you building with?

When was the last version that worked built?

Are you calling the .loadProducts() method in main.lua right after you call .init()?

Thanks

Rob

Hi Rob,

Thank you so much for your Quick response.
We have changed almost all the code for IAP and this issue is solved now.
But I am not sure about the solution.

Thank you again.