I am going to implement managed in app billing in android I have tried a trivial sample application but when I run the app on a device it gives me error.
I don't understand what I am doing wrong and why this error occurred.
First display popup
when I click OK than it give me error on log.
Second display popup
06-23 14:37:04.912: E/Trivial Drive(19340): **** Trivial Drive Error: Error purchasing: IabResult: User canceled. (response: -1005:User cancelled)
It is simple: Google Play In-app purchase testing is not so intuitive.
To test new IAPs you should upload a Beta version of your App (with all logic already implemented) and register some test accounts to download that Beta Version and test.
Every change you should upload a new Beta Version and the error wont appear anymore.
PS: To ensure the logic is working fine, you should use test billing IDs listed here: https://developer.android.com/google/play/billing/billing_testing.html
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