有什么方法可以使用Google Play开发人员API获取订阅用户的信息?
我将IAP链接到与Xamarin开发的Android WebApp。
我正在通过Pub/sub接收和处理用于订阅服务的网络钩,但是我需要使用OrderID或puperaSetoken获取订阅用户的电子邮件信息。
我通过publates.subscriptions.get Google Play开发人员API获得了订阅信息,但它不会返回电子邮件address,profileName等。
该文档显示,只有在您订阅“使用Google订阅”时才会返回。 无论我搜索多少,我都不知道“使用Google订阅”的意思。
我们通过Google帐户与Google Play IAP付款,但是诸如emailAddress和profileName之类的值未返回。
我需要您的帮助。当从服务器收到新的付款网络钩时,请告诉我另一种获取付费用户的电子邮件信息的方式。
谢谢您
I'm linking IAP to Android WebApp developed with Xamarin.
I am receiving and processing a webhook for a subscription service through Pub/Sub, but I need to get the email information of the subscribed user using OrderId or PurchaseToken.
I got subscription information through purchases.subscriptions.get api of Google Play Developer API, but it does not return emailAddress, profileName, etc.
The documentation says that it will only be returned if you subscribed to ‘Subscribe with Google’.
No matter how much I search, I don't know what 'Subscribe with Google' means.
We are paying with Google Play IAP through our Google account, but values such as emailAddress and profileName are not returned.
I need your help. When a new payment webhook is received from the server, please tell me another way to get the e-mail information of the paying user.
thank you
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
“使用Google订阅”(又名SWG)是专门针对发行商(即报纸)的程序。如果您的应用不属于此组,则您将无法获得信息。
此外,即使您使用了SWG,当用户通过应用程序订阅时,您也无法访问他们的电子邮件。
换句话说,我认为SWG无法解决您的问题,因为您无法访问用户的电子邮件。
获取它们的唯一方法是在之前询问您的电子邮件 他们订阅,然后将此电子邮件发送给您的服务器 +您在订阅时获得的购买_token。
"Subscribe with Google" (aka SwG) is a program dedicated to publishers (ie: newspapers). If your app doesn't belong to this group, you won't be able to have the information.
Moreover, even if you used SwG, you wouldn't have access to your users' emails when they subscribe through your app.
In other words, I don't think SwG will solve your problem since you wouldn't have access to your users' emails.
The only way to get them is by asking your users' emails before they subscribe and then send to your server this email + the purchase_token you get when they subscribe.