17
votes

I'm creating an Android application that implements subscriptions to digital content on my backend server. What I wish to do is obtain the name and email associated with the Play account that made the purchase, namely the same information I can get if I go to my Merchant account and view an order.

Using the TrivialDrive in-app billing example, I'm able to access the INAPP_PURCHASE_DATA and send that information to my backend server as the "Checking Subscription Documentation" recommends: http://developer.android.com/google/play/billing/v2/billing_subscriptions.html

The documentation lists a typical implementation workflow and says:

When the user successfully purchases a new subscription, your app notifies a backend server, which stores the purchase token, user name, and other information in a secure location.

Although I can store the purchase token, and other INAPP_PURCHASE_DATA how do I obtain the user name or email for that matter. From what I can piece togehter I suspect the account details like user name, email, subscripion expiration date must be requested from my back end server. It seems using the purchase token on my backend server is the key to accessing order information, but at this point I haven't found any clear way to go about doing this.

Any suggestions would be appreciated. Regards

1
Have you solved your problem? I also can't figure out how to find out user infosberezin
@sberezin, have you solved your problem?wawa

1 Answers

-3
votes

There is an example on the Android Developer site here: Google Play In-app Billing

Testing In-app Billing

enter image description here

Administering In-app Billing

enter image description here

After that Adding items one at a time to a product list

like this enter image description here

In-app Billing Reference

Then review this Agreement

Helpful links refund policy, In-app Billing, Implementing In-app Billing

Pls tell if you still facing the some problem :)

Thanks