Is it possible to disable in-app billing/purchase and test my application on an Android Emulator? I want to do some functional testing of my application on multiple emulators. Later on I would test the 'in-app billing' on a real device.
Anyone have experience? How should I do this?
From Google: http://developer.android.com/guide/market/billing/billing_testing.html
To test in-app billing in an application you must install the application on an Android-powered device. You cannot use the Android emulator to test in-app billing. The device you use for testing must run a standard version of the Android 1.6 or later platform (API level 4 or higher), and have the most current version of the Android Market application installed.
Update 2022
Recently re-checked:
- Even if we Emulate a system-image which targets
Google-Play
(instead ofGoogle APIs
), - update Google-play services to latest,
- and follow the "Goole Wallet" app's and/or "Google Pay" app's add-credit-card form till end successfully.
Said App instead of adding credit-card as payment-method, just shows message:
Note that the message is confusing, as we were trying to add credit-card, and did not try to use "Tap to Pay".