【问题标题】:Google Play Subscription Api: How to distinguish between refunded subscription and user-self canceled subscription?Google Play Subscription Api:如何区分退款订阅和用户自行取消订阅?
【发布时间】:2018-05-14 19:52:34
【问题描述】:

如何区分退款订阅和用户自行取消订阅?

两者都显示到期日期 (expiryTimeMillis) 和取消日期 (userCancellationTimeMillis) 相同。

我没有找到一条线索来反驳彼此,有吗?

提前致谢。

【问题讨论】:

    标签: in-app-purchase in-app-billing google-play-developer-api in-app-subscription


    【解决方案1】:

    区分的唯一方法是在数据库中保存记录! 希望google以后能有更全面的API。

    【讨论】:

      【解决方案2】:

      您可以通过 Google Play Developer API 获取订阅购买详情

        "kind": string,
        "startTimeMillis": string,
        "expiryTimeMillis": string,
        "autoResumeTimeMillis": string,
        "autoRenewing": boolean,
        "priceCurrencyCode": string,
        "priceAmountMicros": string,
        "introductoryPriceInfo": {
          object (IntroductoryPriceInfo)
        },
        "countryCode": string,
        "developerPayload": string,
        "paymentState": integer,
        "cancelReason": integer,
        "userCancellationTimeMillis": string,
        ...
      

      where字段cancelReasondefines取消的详情。可能的值是:

        1. 用户取消订阅
        1. 订阅已被系统取消,例如由于计费问题
        1. 订阅已替换为新订阅
        1. 开发者取消了订阅

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2015-01-28
        • 2014-09-07
        • 1970-01-01
        • 2013-03-09
        • 1970-01-01
        • 2021-01-11
        • 2018-03-23
        • 2016-10-04
        相关资源
        最近更新 更多