Google Play Alpha Release - How to Test App Purchases
I just developed and deployed an app to the Google Play Store.
As you can see, this is an alpha release. I read that alpha releases can validate their in-app purchases without requiring charging.
I set up closed testing and assigned myself as a tester. Then I download the app through the Play Store on my device. Then I try to test in-app purchases, but I get this:
As you can see, I am unable to complete the purchase because I do not have enough funds.
Question
How do you test in-app purchases to avoid paying?
thank
source to share
Adding a user to alpha really changes their purchases to be a mock purchase.
To test purchases, you need to add your email to the list of accounts with access to testing:
- Go to the Google Play Console.
- Settings -> Account Information -> License Testing
- Add your email to the list. Make sure you are logged into the play store with the same email address.
- Be sure to select RESONSE_NORMALLY in License Test Answer. You can later test other types of responses from the store.
Once you have this setup, you can shop from that account. When you buy, you will receive a message on the play store stating that this is a test purchase and that your account will not be charged.
For more information see https://developer.android.com/google/play/billing/billing_testing.html
source to share