Test Subscription Feature of In-app Billing

androidGuy picture androidGuy · Apr 24, 2013 · Viewed 10k times · Source

Is it possible to test subscription feature of In-app Billing? I tried using reserved product IDs for testing(android.test.purchased), But it gave error like 'item not found'.I am using In-app Billing Version 3.I could not find a conclusive answer from the web. Any help is appreciated.

Answer

Stefan Anca picture Stefan Anca · Mar 12, 2015

As of February/March 2015, in-app subscriptions can also be tested on Android. Now, Google accounts with testing access (configured in the Settings Menu of the Developer Console) will receive the message

This is a test subscription. It will recur daily. You will not be charged when trying to buy in-app subscriptions.

This also means that all subscriptions seem to be "billed" daily. You will still receive a normal Google Play Order Receipt Email but it will be prefixed by the word Test:

Test: Your Google Play Order Receipt from Mar 12, 2015

Also, if you look inside this email, you will notice that the order number is a random string of letters, instead of a regular order number as described at http://developer.android.com/google/play/billing/billing_subscriptions.html#payment.

Order number: lhjelkffelbnmmcmklbkhkbd