{Android} Test Google Play in-app-billing pay

Source: Internet
Author: User
Google Play's payment access is not much to say, basically is to build an Android engineering framework, the payment framework, the Google example inside the helper code copy in, and then the relevant code export a jar for unity use. Pay attention to the automatic generation of Gen Iinappbillingservice.java also export to the jar inside.

Previously also connected and tested Google IAB, starting from V2 also more trouble to need credit cards, V3 is easier to add a test account, but the latest test to find out, the original is now the test payment has some new rules. Official Document Portal:
Http://developer.android.com/google/play/billing/billing_testing.html

Probably summed up some points, if encounter problems may be compared, such as encountered an error: PurchaseFragment.onStateChange:Purchase failed:purchaseerror{type=3 subtype=0}


1 with your own KeyStore signature publication, upload to Google Play developer console, note to upload for Alpha or beta version.
2) will your apk publish. (This is one of the main points: otherwise your product is not really activated) this will take several hours to take effect.
3 Create a list of items and activate them.
4 Add the Global test account, that is, settings->account details inside. This addition takes 15 minutes to activate. If it is already there, skip it. Note that the test account is best to use the Gmail account. Not any mailbox can be.
5 Return to your application entry, enter APK, select Beta or alpha, and you have uploaded the apk entry. Choose A testing method selects the setup closed Alhpa/beta test in that place. This will open a closed test, which also has to choose the test account. After saving, send the following opt-in URL to your tester. That https://play.google.com/apps/testing/com.xxx.xxx this.
6 tester on the computer with the test account login to Google, open the above opt-in URL and confirm.

7 Install your version with a mobile phone with enough new version of Google Play Store, which is not necessarily the same as the one you uploaded to the console, but the signature and version number must be the same. The mobile phone uses the tester's Gmail account to log in. It is best to remove all other accounts. So you can test and pay for it.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.