I am trying to test in-app-billing application. Current version on the Android Market doesn't have in-app-billing feature.
When I upload my new version which is having in-app-billing feature as draft, i am getting error message that
"An unexpected error occurred. Please try again later. There are no in-app products for this application. New in-app products cannot be added because the current application version does not use the BILLING permission."
I've set all configurations "http://android-sdk.appspot.com/guide/market/billing/index.html"
I want to test in-app-billing before publish it. How to fix this issue?
When you are testing in app purchases on Android, you must use a signed version of the app. Your Google Play email must be listed in the Google Play Console as a tester. The easiest way to do this is to publish your app to a Beta release with open testing.
Navigate to App Live. After signing in, the App Live dashboard will appear, displaying the list of real Android devices available for app testing. Upload the . apk file if the app to be tested is not published on Play Store.
Open the Google Play app. Choose Account -> Subscriptions & Payments -> Subscriptions. Click your test subscription and change the payment method to “Test card, always declines.”
It is all said in your error message. add BILLING permission in your manifest file and upload your application the market(don't publish it, save as draft). Then add some items in your developers console.
Also, you can try to mention android.test.purchased
as your product id, in that case market application always answer you, that item has been successfully purchased.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With