Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android in app billing v3 response not including orderId

I have spent almost two days working on in-app billing for Android. Everything works fine but at the end I am not getting orderId in the JSON response and this is freaking my mind out. I don’t know what I am missing. Any help is appreciated. This is the JSON response I get in purchaseFinishListener:

jsonPurchaseInfo: {"packageName":"com.app.mikedevice","productId":"monthly","purchaseTime":1429697010648,"purchaseState":0,"purchaseToken":"adbidjaciiidgknlglflebfb.AO-J1OxdrgGs2kFS-xf6Qo7j3eKabw4-Rto9xli4XqpPua_WtJVLNJSIpd3Oxwq7s_Uja4bVywEFf-iUP1g1dByizN984WHYi12ekQZ8T7X6oiitr5uiX2c","autoRenewing":true}
like image 275
Shabbir Panjesha Avatar asked Apr 22 '15 10:04

Shabbir Panjesha


1 Answers

You're probably using your Google account as tester - check it in Google Play dashboard.

Make sure on the device you are testing there is only one Google account which is not a tester (I created a new account). It works for me.

  • To test that this step is working try buying a consumable product you should see a Google dialog with a message saying this is a test purchase (or text similar). Once you delete the test account and log in with new one it should work.
like image 117
user3193413 Avatar answered Oct 21 '22 11:10

user3193413