Google Play中的测试订单将在五分钟后自动退款

问题描述 投票:0回答:1

我今天从以下位置升级了billingclient库:

//implementation 'com.android.billingclient:billing:1.2.1'
//to 
implementation 'com.android.billingclient:billing:2.0.3'

我还完成了所需的代码更改,例如使用setSkuDetails代替setSku,定义SkuDetailsResponseListener等。

一切似乎都正常。但是,在测试过程中,我注意到我的测试订单会在五分钟后自动退款。显然,这不是我的代码造成的,因为即使关闭我的设备,退款仍会发生。

以下是其中一项测试在Google Play控制台的“订单管理”页面中观察到的顺序:

Nov 25 2019 21:10:21, Payment pending, You received a new order.
Nov 25 2019 21:10:21, Chargeable, The customer's form of payment was authorized for $0.00.
Nov 25 2019 21:15:22, Refunding, A refund of $0.99 was initiated on this order.
Nov 25 2019 21:20:22, Charged, The customer's form of payment was successfully charged for $0.00.
Nov 25 2019 21:20:22, Refunded, Google processed your request and applied a refund of $0.99.

[此外,我也不使用保留的产品ID来测试静态Google Play结算响应(“ android.test.purchased”)。我正在使用在Google Play控制台中注册的许可测试人员在测试设备中使用真实的产品ID。

这给了我足够的时间来测试所有内容,但这是有意退款吗?

android testing in-app-purchase in-app-billing google-play-console
1个回答
1
投票

您必须Acknowledge a purchase。因此,您必须添加一些代码。

© www.soinside.com 2019 - 2024. All rights reserved.