我正在与Google API (https://developers.google.com/android-publisher)集成。更确切地说,我正在尝试获取有关特定订阅(https://developers.google.com/android-publisher/api-ref/rest/v3/purchases.subscriptions/get)的信息。
嗯,我已经得到了subscriptionId和purchaseToken订阅的信息。问题是,有些字段没有作为响应返回。其中一个字段是emailAddress,它对我的使用上下文很重要。我得到了如下所示的回复。
{
"startTimeMillis": "1631112305355",
"expiryTimeMillis": "1638981894973",
"autoRenewing": true,
"priceCurrencyCode": "BRL",
"priceAmountMicros": "39990000",
"countryCode": "BR",
"developerPayload": "",
"paymentState": 1,
"orderId": "GPA.9999-5849-9341-89139",
"acknowledgementState": 1,
"kind": "androidpublisher#subscriptionPurchase"
}从有关emailAddress的文档中,我们获得了用户在购买订阅时的电子邮件地址。只为购买与‘订阅谷歌’的礼物。
但是Subscribe with Google是什么呢?谷歌不就是这个类别的游戏计费吗?我的购买是在一个带有Play计费的Android移动应用程序上进行的。
谢谢你帮忙。
发布于 2022-06-27 17:32:00
订阅谷歌是一个完全不同的东西,谷歌提供或至少过去提供,这些不是正常的订阅,对于正常的子你没有收到用户的电子邮件。
订阅Google允许你使用你的Google帐户在参与的新闻网站上购买订阅。选择您想要购买的发行者报价,单击“订阅”,您就完成了。您将自动登录到该网站,您可以支付-安全和私下-任何信用卡你已经使用谷歌在过去。
https://blog.google/outreach-initiatives/google-news-initiative/introducing-subscribe-google/
https://stackoverflow.com/questions/69107698
复制相似问题