Play商店会退还所有用户的购买问题

时间:2019-08-04 14:07:24

标签: google-play google-play-console

我们有每月的会员申请表。当人们注册该应用程序并付款时,这没有问题。但是昨天我们意识到取消会员资格的三天之久。如果您以前遇到过此类问题,可以提供帮助吗?

感谢您的帮助。

enter image description here

1 个答案:

答案 0 :(得分: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 !!