Hey everyone,
This is a tutorial on how you can add In App Purchases to your Android App in the New Google Play Console.
1) Add GooglePlayBilling library in your project and the following code in manifest:
2) Create the license testers list. This list includes gmail accounts of users that will test your In App Purchases and they will not be charged. You may add obviously your own developer account. You can do it in the main page of the new Google Play Console. See this picture:
3) Add the test users that will test your app. This list is different than the previous one because it can contain license testers gmail accounts and non license testers gmail accounts. The first category of e-mails will not be charged, the second will. Obviously you will have to include all License testing's list gmail accounts. See the following picture (first create the test users list and then add the e-mails) :
a) Create the list
b) Add test users to your list
4) Create the app in Google Play Console but do not upload the APK in release mode.
5) Set all the info of the app in the dash board but do not upload again an APK in release mode.
6) Go to Closed Testing and select the Alpha Test Track:
7) Upload a release to be tested in closed track
8) Select countries and testers. Absolutely crucial - in Testers tab check the checkbox of the testers list you have created. See the following pictures (select countries - select testers)
a) Select countries
b) Select testers - Check the checkbox of the testers' list you have created!!!
9) Create the In App Products or Subscriptions - the procedure is almost the same (you select an identifying code for the relative In App Purchase and you fill the relative info)
You are good to go.
If you encounter the "Item unavailable in your country" in the test cards problem, the fix is on the following link:
You may use this class to add In App Purchases to your project on the fly which will make it as easy as A-B-C to you.
This is a tutorial on how you can add In App Purchases to your Android App in the New Google Play Console.
1) Add GooglePlayBilling library in your project and the following code in manifest:
Manifest Code:
'In App billing
CreateResourceFromFile(Macro, GooglePlayBilling.GooglePlayBilling)
2) Create the license testers list. This list includes gmail accounts of users that will test your In App Purchases and they will not be charged. You may add obviously your own developer account. You can do it in the main page of the new Google Play Console. See this picture:
3) Add the test users that will test your app. This list is different than the previous one because it can contain license testers gmail accounts and non license testers gmail accounts. The first category of e-mails will not be charged, the second will. Obviously you will have to include all License testing's list gmail accounts. See the following picture (first create the test users list and then add the e-mails) :
a) Create the list
b) Add test users to your list
4) Create the app in Google Play Console but do not upload the APK in release mode.
5) Set all the info of the app in the dash board but do not upload again an APK in release mode.
6) Go to Closed Testing and select the Alpha Test Track:
7) Upload a release to be tested in closed track
8) Select countries and testers. Absolutely crucial - in Testers tab check the checkbox of the testers list you have created. See the following pictures (select countries - select testers)
a) Select countries
b) Select testers - Check the checkbox of the testers' list you have created!!!
9) Create the In App Products or Subscriptions - the procedure is almost the same (you select an identifying code for the relative In App Purchase and you fill the relative info)
You are good to go.
If you encounter the "Item unavailable in your country" in the test cards problem, the fix is on the following link:
Test Card Always Approves - Item unavailable in your country
Google never seizes to surprise us and its latest miracle is the following: In order to fix this no matter if you have an EmailList set with the testers I have done two things. I do not now which of the two fixed it but it worked. Go to the Release you have chosen (I had chosen Closed...
www.b4x.com
You may use this class to add In App Purchases to your project on the fly which will make it as easy as A-B-C to you.
[CHARGEABLE] - [Class] Add In App Purchases on the fly to your B4A and B4i projects
Now it is easy to add in app purchases to every application (B4A or B4i) you create on the fly. Simply add the class you will get and it is as easy to use as the following B4X Pages Code: #Region Shared Files #CustomBuildAction: folders ready, %WINDIR%\System32\Robocopy.exe,"..\..\Shared Files"...
www.b4x.com
Last edited: