Reputation: 650
I'm trying to test my in app purchase flow with the fake item android.test.purchased, from android documentation. I'm not able to test this flow, just when I launch it, I get this error: "The item you requested is not available for purchase". I have the permission in my manifest and I don't understand why I get this error with the fake item android.test.purchased.
Upvotes: 8
Views: 6232
Reputation: 1
I was with the same problem and fixed listing the "android.test.purchased" ID in the IAP activate list. I know Google says that you do not need to list the IAP ID with static responses but, in my case, after I listed the ID "android.test.purchase" and activated I get success in my tests
Upvotes: 0
Reputation: 598
Here is the list of requirements for the Google IAB testing.
Prerequisites:
Testing requirements:
Upvotes: 3
Reputation: 1784
To test in-app products or make in-app purchases in your alpha or beta channel app, each tester needs to opt-in to your app’s alpha or beta test. On your test’s opt-in URL, your testers will get an explanation of what it means to be a tester and a link to opt-in.
The most current version of the Google Play application must be installed on the device.
Ref: https://stackoverflow.com/a/22469253/3758024
https://stackoverflow.com/a/11076056/3758024
https://developer.android.com/google/play/billing/billing_testing.html
Upvotes: 0