Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What user identity should be used to collate in-app purchases from Google Play?

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

  1. Verify the purchase (possibly on your own server)
  2. Record the purchase (almost certainly on your own server if its an unmanaged item)
  3. 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.

like image 868
William Avatar asked Nov 14 '22 00:11

William


1 Answers

I saw your discussion on Google Groups, from a few months ago when Google Play Services was not yet released.

You can now use Google Play Services as a standard way to do this. See AccountPicker.

like image 79
TalkLittle Avatar answered Apr 27 '23 00:04

TalkLittle