【问题标题】:Play store refunds all users' purchases problemPlay商店退款所有用户的购买问题
【发布时间】:2019-08-04 14:07:24
【问题描述】:

我们有每月的会员申请。人们注册应用程序并付款时没有问题。但是昨天我们意识到,在所有会员资格取消之前的 3 天。如果您以前遇到过这样的问题,您能帮忙吗?

感谢您的帮助。

【问题讨论】:

  • 我投票决定将此问题作为题外话结束,因为它不是一个编程问题——这看起来只有谷歌才能回答。
  • 有没有人之前有过这样的问题,问这个问题的目的是什么?如果有,他是怎么解决的?谷歌答案或其他。
  • 以后可能会有其他人遇到这个问题,并根据这里的答案立即采取行动

标签: google-play google-play-console


【解决方案1】:

如果您使用 Google Play 结算库 2.0 版或更高版本,则必须在三天内确认所有购买。未能正确确认购买会导致这些购买被退款。

https://developer.android.com/google/play/billing/billing_library_overview#acknowledge

即使发生购买,Google 也不会给您钱。您还需要添加不必要的代码行来确认付款

if (purchase.getPurchaseState() == PurchaseState.PURCHASED) {
        // Grant entitlement to the user.
        ...

        // Acknowledge the purchase if it hasn't already been acknowledged.
        if (!purchase.isAcknowledged()) {
            AcknowledgePurchaseParams acknowledgePurchaseParams =
                AcknowledgePurchaseParams.newBuilder()
                    .setPurchaseToken(purchase.getPurchaseToken())
                    .build();
            client.acknowledgePurchase(acknowledgePurchaseParams, acknowledgePurchaseResponseListener);
        }
    }

WTF!!

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-03-09
    • 1970-01-01
    • 2016-03-09
    • 1970-01-01
    • 2019-10-28
    • 1970-01-01
    • 2021-10-10
    相关资源
    最近更新 更多