答案 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 !!