[Resolved] Testing Google Play In-App Billing

I’d like to test In-App Billing using my own product IDs, and I read through the documentation on end-to-end In-app Billing testing described here:

 

http://developer.android.com/google/play/billing/billing_testing.html

 

I believe I have not missed anything:

 

  1.  I created In-App products on Google Play, and they are all on “Active” state.

  2.  I have a test user added to Google Play.

  3.  Test user is the only account on the Android test device.

  4.  I use my app’s keystore when generating APK file (not the debug one).

  5.  I uploaded the APK to Google Play, and it’s in Draft state.

  6.  I waited over a day to ensure my In-App products propagate on Google servers properly.

 

But still, all I get is a popup with _ “Item unavailable.  User is not eligible for this purchase.” _    Behind this popup alert, I see the Google Play Store, which displays the item that I want to purchase.  This indicates that, at the very least, the products are matching.  I just can’t test to see if the purchase executes properly.  It was like that yesterday, and it is still the same today.

 

How do I get rid of this user-not-eligible blocker?  I googled, and I found a several threads about this same issue on Stackoverflow, but they mostly suggests waiting or uploading APK file using the old Google Play Console interface.  And no, they don’t solve the problem for me.  

 

If anyone here dealt with this problem and have a suggestion, please let me know.

 

Naomi

 

 

Hi Naomi,

 

I was actually working on Google In-App Billing today too.  I didn’t come across the specific issue you’re experiencing, but I did come across something somewhat similar – purchases by my test account were allowed, and my credit card was actually charged, but the data passed to my transaction callback indicated the transaction had failed.  For whatever reason, the problem went away when I removed the test account from my list of test accounts in the Google Play console, saved, and then added it right back and saved again.  Maybe that’ll work in your situation too?

 

  • Andrew

Thank you, Andrew.  

 

I tried it, but still no go.  I then uploaded the APK to Google Play one more time, deleted the app from the device and reinstalled the same APK that I just uploaded, and tried again.  Still no go.  Maybe I need to wait a bit.  If waiting doesn’t work, although it makes no sense, maybe I need to reset the test account on device as primary account by doing Settings > Privacy > Factory data reset > Reset phone > sign in with test account.  Odd, but it might be worth a try.

 

Thanks again!

 

Naomi

It turned out it was a stupid error on my part.  The test account gmail address I added to Google Play Console did not quite match the account on the device.  It looks so identical that I totally didn’t see it.  I can do the full test now.  Cheers.

 

Naomi

Hi Naomi,

 

I was actually working on Google In-App Billing today too.  I didn’t come across the specific issue you’re experiencing, but I did come across something somewhat similar – purchases by my test account were allowed, and my credit card was actually charged, but the data passed to my transaction callback indicated the transaction had failed.  For whatever reason, the problem went away when I removed the test account from my list of test accounts in the Google Play console, saved, and then added it right back and saved again.  Maybe that’ll work in your situation too?

 

  • Andrew

Thank you, Andrew.  

 

I tried it, but still no go.  I then uploaded the APK to Google Play one more time, deleted the app from the device and reinstalled the same APK that I just uploaded, and tried again.  Still no go.  Maybe I need to wait a bit.  If waiting doesn’t work, although it makes no sense, maybe I need to reset the test account on device as primary account by doing Settings > Privacy > Factory data reset > Reset phone > sign in with test account.  Odd, but it might be worth a try.

 

Thanks again!

 

Naomi

It turned out it was a stupid error on my part.  The test account gmail address I added to Google Play Console did not quite match the account on the device.  It looks so identical that I totally didn’t see it.  I can do the full test now.  Cheers.

 

Naomi

I do the same thing for testing in app billing on my tf300

but…

I create my test account on my tablet and when i try to install my .apk on it i have this error message : “application not installed”…

In my primary account the application works fine…

I do the same thing for testing in app billing on my tf300

but…

I create my test account on my tablet and when i try to install my .apk on it i have this error message : “application not installed”…

In my primary account the application works fine…