Reputation: 4081
I´m testing my in-app billing and followed the following steps:
Uploaded APK to the Market, created In-App items and published them (did not publish the app itself), exported a signed APK and installed that on a different device then my own (so there is a different primary account), but when I click on the button to purchase an item, it shows the itemname in a different view, but after a loading widget it gives the error:
How to resolve “The item you were attempting to purchase could not be found
I couldn´t find the solution on stackoverflow, can anyone give me more ideas?
Thanks
Upvotes: 20
Views: 38816
Reputation: 8671
For me, Internal testing didn't work. After I created Closed testing (Alpha) and added testers, it worked!
Upvotes: 0
Reputation: 11
To test your Google Play Billing Library integration using test tracks, do the following:
Publish your app to a test track. Note that after you publish an app to a testing track, it can take a few hours for the app to be available for testers. Ensure each tester opts-in to your app's test. On your test's opt-in URL, your testers see an explanation of what it means to be a tester along with a link to opt-in. Test your Google Play Billing Library integration
Upvotes: 1
Reputation: 12664
This error is telling you that you didn't add the item on Google play developer console under in-app product
Steps to add item
Note : If you click on Save button then the item is only saved in your in-app products and it's still not active to use. you have to manually activate the item and wait for 2 or 3 hours to be active.
Most important : If you want to activate your item immediately then you have to click on Activate button at step 8. it will activate your item immediately and save it automatically.
Upvotes: 3
Reputation: 3708
Make sure you have done all these steps:
versionCode
of the app you're running has to be the same as the apk you have loaded in the Google Play Console.You can find the complete tutorial on how to implement In-App Purchases here
Upvotes: 7
Reputation: 4196
Add your testers' accounts across all apps by following how to User-test a Google Play Billing app instructions.
Upvotes: 0
Reputation: 1051
If the app is not published, then the account you are using must be declared as a test account, check it here:
Upvotes: 15