简体   繁体   中英

Google Play Alpha Release - how to test in app purchases

I have just developed and deployed an app to the Google Play Store.

在此输入图像描述

As you can see, it is an alpha release. I have read that alpha releases can have their in-app purchases tested, without the tester having to incur a charge.

I have set up closed testing and assigned myself as a tester. I then download the app through the Play Store on my devise. I then attempt to test the in-app purchases, but I get the following:

在此输入图像描述

As you can see, I cannot make the purchase as I don't have sufficient funds.

Question

How do you test in-app purchases so you are not charged?

Thank you

Adding a user to the alpha does change his purchases to be a mock purchase.

In order to test purchases you need to add your email to the list of accounts with testing access:

  1. Go to Google play console
  2. Settings -> Account Details -> License Testing
  3. Add the your email to the list. Make sure that the you login to the play store with the same email.
  4. Make sure to pick RESONSE_NORMALLY in the 'License Test Response'. Later on you can test other types of responses from the store.

Once you have that setup, you can make purchases from that account. When you purchase you will get a message from the play store saying that this is a test purchase and that your account will not be charged.

This is how it looks like - 在此输入图像描述

For more information see https://developer.android.com/google/play/billing/billing_testing.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM