如何在 React Native 上使用 Qonversion 或 IAP HUB 成功进行应用内购买?

时间:2021-02-10 11:36:01

标签: android react-native in-app-purchase

我在实施 IAP 时遇到了很大的困难。

在应用程序中初始化 SDK 后尝试购买时,我从 Qonversion 收到以下错误:
[Error: Failure to retrieve SkuDetails for the in-app product ID]

尝试使用 IAP-HUB 时,出现以下错误:
GooglePlay did not return the product 'monthly', the product has been filtered, if the sku is valid your GooglePlay account or sandbox environment is probably not configured properly (https://iaphub.com/docs/set-up-android/configure-sandbox-testing)

我按照上述教程操作但没有成功。我肯定错过了一个点,但找不到在哪里。

产品存在于 Google Play 并且有效。我一无所知,几天以来我一直在努力敲定这个问题。

我正在真实设备上进行测试,我有一个在封闭轨道上上传获得 Google 批准的捆绑包。但是那个包没有 BILLING 权限,所以我上传了一个新的,也许它会解决我的问题?

编辑: 问题来自 debug buildType 中的 applicationIdSuffix,因此 Qonversion 和 IAP 无法找到产品。

2 个答案:

答案 0 :(得分:1)

问题来自 debug buildType 中的 applicationIdSuffix。

答案 1 :(得分:0)

好的,Android 要获得订阅/产品,您必须在开放测试/封闭测试/内部测试上发布您的应用。一旦您能够在 Play 商店中看到您的应用程序作为可用于测试的 Beta 版,那么您就可以在阵列中获得订阅或产品。希望这对您有所帮助。

相关问题