我知道有很多这样的问题,但我找不到有帮助的问题。
我已经多次实现 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/