When using in-app billing with Google Play you receive a PURCHASE_STATE_CHANGED broadcast intent containing information about the purchase. At that point you
- Verify the purchase (possibly on your own server)
- Record the purchase (almost certainly on your own server if its an unmanaged item)
- Update your app to reflect the purchase
My question is: When recording the purchase on your own server what user identity should be used to collate multiple purchases (and uses) of an unmanaged item? And how do you get this identity on Android?
NB the identity can't be device specific because a user may have more than one device. It needs to be linked to the Google Play account used for purchase. The data in the intents coming back from Google Play don't seem to contain any user identity (obfuscated or not).
I'm looking for where/how to find the Google play identity on Android and how to send that to an AppEngine stance.