The JSON fields that are returned with a PURCHASE_STATE_CHANGED intent contain very useful information, but one piece that I am interested in is not listed: customer’s email address.
Is there a way to retrieve it, using In-App Billing API?
If not, is there a way to retrieve some other unique identifier for the customer, so that a transaction can be associated with the customer, not the device?
If you are running Android 2.x and up, maybe you can get a way with the owner’s email address?
The downside of this is that it requires
android.permission.GET_ACCOUNTSin the manifest. The more permissions your apps requires, the more likely you are to scare prospective users of your app…Also note that “owner’s email address” might not be the same as “purchase account email address” (especially since Honeycomb 3.0)