Question

So after reading this tutorial, and also going through this, I was trying to implement the in-app billing. I had 2 questions

1) One thing that I don't understand is where do I get the BASE_64_KEY. I have a correct draft in the developer console, and there is a BASE_64_PUBLIC_KEY over there. Is this the same one that I require in the in-app billing?

2) The Android documentation says You cannot use the Android emulator to test In-app Billing. I am using GenyMotion (with Google Apps added through the tweak on XDA website) and do not have a physical Android device. Is testing using Genymotion a good idea?

Any help is appreciated.

Was it helpful?

Solution

You should use the public key for your application. As described here, you can find it in the details for the application under "Services & APIs".

Regarding testing with GenyMotion, I can't speak to that directly, as I haven't used it. But from what I've read, I have my doubts. Certainly you can't use it out of the box; it does not include a recent version of Google Play, which is required for testing in-app billing. I found this blog post on how to install Google Play, but I have no idea if it will actually work.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top