ios - 应用内购买不起作用但得到产品响应

标签 ios objective-c in-app-purchase app-store-connect rmstore

我知道有很多这样的问题,但我找不到有帮助的问题。

我已经多次实现 IAP,但去年没有实现。事情似乎发生了变化。我在 iTunes Connect 中创建了我的 IAP 项目,它们的状态现在是“等待审核”。我正在使用一个名为 RMStore 的库来简化 IAP。

当我使用产品 ID 调用购买电话时,我收到“产品 ID 无效错误”。我的 IAP 项目必须先通过审核才能测试吗?

编辑:

我做了更多测试。即使我在尝试购买时得到无效的产品 ID,我也可以使用相同的产品 ID 获得产品的详细信息。

这是我遇到错误时调用的代码。

[[RMStore defaultStore] addPayment:productID success:^(SKPaymentTransaction *transaction) {
        } failure:^(SKPaymentTransaction *transaction, NSError *error) {
}

最佳答案

此处为 RMStore 作者。

When I make a call to purchase with the product ID I get an 'invalid product ID error'. Do my IAP items have to pass review BEFORE I can test them?

没有。

I did some more testing. Even though I get invalid product ID when I try to make a purchase I am able to get the details of the products fine with the same product ID's.

在购买产品之前,您需要索取其详细信息。如果您不这样做,RMStore 将在 DEBUG 中记录“未知产品 ID”。

发布确切的错误消息可能会有所帮助。

关于ios - 应用内购买不起作用但得到产品响应,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20585354/

相关文章:

ios - 在 NSArray 中改变 NSDictionary

ios - audioSession 错误 : The operation couldn’t be completed.(OSStatus 错误 -50。)

iOS - UIScrollView 可以滚动但不能缩放

ios - 聚焦非 UILabel titleView 时,VoiceOver 会读取辅助功能标签两次

ios - 保存解锁 PDFDocumentsRef 到本地目录

ios - 为什么从不调用 updatedTransactions?

Swift:检测何时显示应用内购买的购买警报

iphone - 您可以在 iTunes Connect 中自动注册新产品(应用程序内购买)吗?

ios - 类扩展与头文件

objective-c - 检查是否+[UIImage imageNamed :] found an image