InAppPurchase 测试错误 [从服务器 [DF-RPC-01] 检索时出错

InAppPurchase Testing Error [Error while retrieving from server [DF-RPC-01]

我有一个 Android 应用程序,其中包含用于从 Android 开发人员文档订阅的 inAppPurchase,它提到使用保留 ID android.test.purchased 我已将其作为我的产品 ID,但是当我我正在尝试 运行 我总是收到屏幕截图中提到的以下错误,我还没有在 Playstore 中发布它。

问题 2: 我还有另一个应用程序已上传到 google 开发者控制台并作为测试版上传,我可以看到购买选项,但它询问我的卡详细信息并进行真实交易有什么方法可以进行沙盒测试,例如 ios.

回答 1:The 我在许可证测试用户帐户上进行测试的原因 it should test actually with login of your google developer account on your mobile device.在设备上使用开发人员帐户登录后,我成功进行了测试。

答案 2:是的,我们可以像 IOS 那样进行沙盒测试,但在 android 的情况下,我们必须提供我们的真实卡详细信息,并且在进行交易时它也会扣款,并且会再次扣款15 分钟内退款

对于订阅,如果您使用测试 ID 测试订阅购买,则会出现此错误。 Testing In-App Billing 文档中的注释指出使用实际订阅 SKU 而不是测试 ID 来测试订阅。

来自 Google 文档:

Note: If you're testing subscription purchases, you must use the product ID of an actual subscription, not a reserved product ID.