Does the Android billing application give a -1005 error?

I am going to implement managed in billing applications in android. I tried a trivial sample application, but when I run the application on the device, it gives me an error.

I do not understand what I am doing wrong, and why this error occurred.

First popup display enter image description here

when I click OK, and that gives me an error in the log.

Second popup display enter image description here

06-23 14:37:04.912: E/Trivial Drive(19340): **** Trivial Drive Error: Error purchasing: IabResult: User canceled. (response: -1005:User cancelled) 
+4
android in-app-billing
source share
1 answer

It's simple: testing a purchase on the Google Play In-app is not so intuitive.

To test the new IAPs, you must download the beta version of your application (with all the logic already implemented) and register several test accounts to download this beta version and test.

Each change you have to download a new beta version, and the error will no longer appear.

PS: To make sure the logic works fine, you should use the test billing identifiers listed here: https://developer.android.com/google/play/billing/billing_testing.html

+2
source share

All Articles