iPad In App Purchase因SKErrorPaymentCancelled和“无法连接到iTunes Store”而失败。 [英] iPad In App Purchase fails with SKErrorPaymentCancelled and "Cannot connect to iTunes Store"

查看:1915
本文介绍了iPad In App Purchase因SKErrorPaymentCancelled和“无法连接到iTunes Store”而失败。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


可能重复:

iPhone storekit沙箱停止工作。

嗨。

我今天更新到iPad iOS版本3.2.2,我注意到我的In App Purchase测试无效。

我正在使用测试帐户和粉丝一直工作到现在(我们的应用程序自6月开始已经上线,真正的应用程序购买工作),但今天我想用我一直使用的相同产品和测试用户进行测试购买,现在它不起作用。

I updated today to version 3.2.2 of the iPad iOS and I noticed that my In App Purchase testing was not working.
I am using a test account and everyhing was working until now (our app is already live since june and the real in app purchase works), but today I wanted to make a test purchase with the same product and test user that I always used and now it's not working.

问题如下:


  1. 我开始在应用内购买。

  2. 确认购买并与测试用户一起登录。

  3. 因为这是一种非消费品,App Store会通知我,我有已购买此产品但尚未下载。

  4. P. ress OK。

  5. 到目前为止,交易观察员得到了一个与transactionState SKPaymentTransactionStatePurchased交易并且用户获得他/她的应用程序功能的交易。

  6. 但是现在transactionState是SKPaymentTransactionStateFailed并带有错误:

  1. I start the in app purchase.
  2. Confirm the purchase and sign in with the test user.
  3. Because this is a non-consumable product the App Store notifies me, that I have already purchased this but it hasn't been downloaded.
  4. Press OK.
  5. Up until now the transaction observer got a transaction with the transactionState SKPaymentTransactionStatePurchased and the user got his/her in app feature.
  6. But now the transactionState is SKPaymentTransactionStateFailed with the error:

错误域= SKErrorDomain代码= 2 UserInfo = 0x2debe0无法连接到iTunes Store

Error Domain=SKErrorDomain Code=2 UserInfo=0x2debe0 "Cannot connect to iTunes Store"


Code = 2表示SKErrorPaymentCancelled。 WTF?如果用户取消了交易,而不是真正的错误,则会发生这种情况。这是非常误导的。我不应该将此显示为错误,因为大多数情况下,如果用户确实取消了他/她的购买,则无法确定此错误是由用户还是App Store引起的。

Code=2 means SKErrorPaymentCancelled. WTF? This should happen if the user canceled the transaction, not in a real error. This is very misleading. I am not supposed to show this as an error because most of the time this is called if a user really cancels his/her purchase and there is no way to determine whether this error was caused by the user or by the App Store.

一切都设置正确,因为我提到应用内购买测试工作正常,我认为产品有效。此外,我没有更改处理应用内购买的代码。

Everything is set up correctly, as I mentioned the in app purchase testing worked and I get the products as valid. Also I didn't change the code handling the in app purchase.

错误必须在App Store一侧。

The error must be somewhere on the App Store side.

有没有其他人有这个问题?

Does anyone else had this problem?

谢谢。

我测试了运行iOS 4.0.2的iPhone(它是一款通用应用程序)上的应用程序,错误如下所示:

I tested the app on the iPhone (it's a universal app) running iOS 4.0.2 and the error looks like this:


错误域= SKErrorDomain代码= 0无法连接到iTunes StoreUserInfo = 0x2620e0 {NSLocalizedDescription =无法连接到iTunes Store}

Error Domain=SKErrorDomain Code=0 "Cannot connect to iTunes Store" UserInfo=0x2620e0 {NSLocalizedDescription=Cannot connect to iTunes Store}

Code = 0是SKErrorUnknown,应用程序向用户显示错误。

因此,似乎iOS 4.0.2比iOS 3.2.2更好地处理这个问题。

The Code=0 is SKErrorUnknown and the app displays an error to the user.
So it seems that iOS 4.0.2 handles this problem better than iOS 3.2.2.

推荐答案

我再次测试,幸运的是问题似乎消失了。我可以在没有任何问题的情况下测试应用内购买。

I tested again and fortunately it seems that the problem is gone. I can test the in app purchase without any problems.

我希望现在也适用于其他人。

I hope it works now for others, too.

这篇关于iPad In App Purchase因SKErrorPaymentCancelled和“无法连接到iTunes Store”而失败。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆