I have set up subscription-based products in our Android app using the Andoid's InApp billing mechanism. We are logging the purchases when the user purchases an item. The problem we are facing is that while testing our app, the test purchases are also getting logged into our system. I want to know as to how to differentiate between a test purchase and a non-test purchase so that I can selectively remove them from being logged. I have already tried reading the data as follows:
final String purchaseData = data.getStringExtra("INAPP_PURCHASE_DATA");
This gives me a null
. Any ideas on this would be of great help.