Search code examples
androidin-app-purchasein-app-billingandroid-billing

How to check if an Android in-app purchase is a test or regular purchase?


Is there a way to programmatically check if a purchase is a test purchase or a regular one?

When you attempt a test purchase, Google notifies you that this is a test purchase and that you will not be charged for it. Is there a way to get that information in code?


Solution

  • I tried it too much, unfortunately there is no way to get this information from Google on an Android application for now. If you are doing regular purchase with a tester account, all responses you got from Google apis are same with a non tester account. So it is impossible to differentiate it.