使用沙箱测试帐户在应用程序中进行测试时出现问题

发布于 2024-08-10 12:47:03 字数 397 浏览 3 评论 0原文

我通过 iTunes Connect 中的管理用户帐户创建了一个测试用户帐户。创建此类帐户时,您必须为您的帐户选择有效的店面。我选择了美国专卖店。现在,我在设备上的 App Store 设置中退出了商店。运行应用程序并尝试执行购买。我成功使用我的测试帐户登录。输入凭据时按“确认”后,我会收到一条警报,该警报来自观察者的 SKPaymentTransactionStateFailed。它显示“您的帐户仅适用于在美国 iTunes Store 中购买”。错误状态 = 0 未知。当我第二次尝试执行购买时,StoreKit 仅要求我输入密码,就像上次登录成功一样。输入密码后我可以进行购买。我的问题是,这是否只是因为它是一个测试帐户,而该应用程序实际上并不在 AppStore 上?我应该怎样做才能避免出现此消息或至少继续购买过程?

非常感谢,

纳瓦

I created a test user account through the Manage User Accounts in iTunes Connect. When you create such an account you have to select a valid storefront for your account. I chose US Store. Now I signed out from the store in App Store settings on my device. Ran the application and tried to perform a purchase. I successfully login with my test account. After I press Confirm when entering my credentials I get an alert, that comes from SKPaymentTransactionStateFailed from the observer. It says "Your account is only valid for purchases in the US iTunes Store". The error state = 0 unknown. Second time when i try to perform the purchase, StoreKit only asks me for a password like the previous login was successful. After entering a password I can perform a purchase. My question is whether it's only because it's a testing account and the application is not actually on AppStore? What should I do to avoid this message or at least to continue the purchasing process?

Thanks a lot,

Nava

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

鹊巢 2024-08-17 12:47:03

嗯,我发现了一个不错的博客,其中包含一个代码库,允许将应用程序内购买添加到您的免费​​应用程序中。最后,这个人回答了我在那里问他的问题:

http://blog.mugunthkumar.com/coding/iphone-tutorial-–-in-app-purchases/

不久之后,我遇到的行为不是一个错误,而是一个功能iTunes 也是这样工作的。当您退出并再次登录时,它会说您的购买仅在您拥有帐户的商店中有效,并且它会将您带到该商店。

Well, i found a nice blog with a code library that allows to add an In-App Purchase to your free application. In the end the guy answers the question I've asked him there:

http://blog.mugunthkumar.com/coding/iphone-tutorial-–-in-app-purchases/

Shortly the behavior I'm experiencing is not a bug, it's a feature and iTunes also works this way. When you're sign out and sign in again, it says, that your purchases are valid only in the store you have account in and it takes you to that store.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文