17

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

4

1 回答 1

-3

Android 开发者网站上有一个示例:Google Play In-app Billing

测试应用内结算

在此处输入图像描述

管理应用内结算

在此处输入图像描述

之后一次将一个项目添加到产品列表中

像这样在此处输入图像描述

应用内结算参考

然后查看本协议

有用的链接退款政策应用内计费实施应用内计费

请告诉您是否仍然面临一些问题:)

谢谢

于 2014-03-03T11:12:46.703 回答