ios 应用内购买沙盒测试错误
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/17562872/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
In-App-Purchase sandbox testing error
提问by Ravindhiran
I am getting the below error for sandbox testing while test in app purchase
在应用程序购买中进行测试时,我收到以下沙盒测试错误
you are not authorized to make purchases of this in app in sandbox at this time
您目前无权在沙盒中的应用程序中购买此产品
How to avoid this error
如何避免这个错误
回答by Manish Agrawal
Make sure of the following:
1. The test account created is from the same developer portal from which you generated your provisioning profile.
2. The test account still exists and was not deleted from there.
3. Use the same identifier for which you created the in-app purchase for your app in iTunesConnect.
请确保以下几点:
1. 创建的测试帐户来自您生成供应配置文件的同一开发人员门户。
2. 测试账号依然存在,并没有从那里删除。
3. 使用与您在 iTunesConnect 中为您的应用程序创建应用程序内购买相同的标识符。
回答by simon_smiley
I found that I got this error when trying to log in with the wrong test account. One not connected to my iTunes connect account.
我发现尝试使用错误的测试帐户登录时出现此错误。一个未连接到我的 iTunes 连接帐户。
Log into iTunes Connect and double check you are using the correct email address as in the test account.
登录 iTunes Connect 并仔细检查您使用的是测试帐户中的正确电子邮件地址。
Otherwise here is a pretty good post about all the checks you need to go through to get the in app purchases working in sandbox mode, each has a short blurb on completing each one: http://ireviewappsblog.wordpress.com/2014/07/07/adding-in-app-purchases-in-sand-box-mode/
否则,这里有一篇很好的帖子,介绍了在沙盒模式下进行应用内购买所需的所有检查,每个检查都有一个简短的介绍:http: //ireviewappsblog.wordpress.com/2014/07 /07/adding-in-app-purchases-in-sand-box-mode/
It covers adding the app to iTunes connecting, setting up the developer account and then also adding the code in xCode to get it working.
它包括将应用程序添加到 iTunes 连接,设置开发者帐户,然后还在 xCode 中添加代码以使其工作。
回答by TPoschel
It is possible that your test account does not exist any longer. I found that you are still able to log in with a deleted test account but you are not allowed to make purchases and you will see the same message as you described.
您的测试帐户可能不再存在。我发现您仍然可以使用已删除的测试帐户登录,但不允许您进行购买,并且您将看到与您描述的相同的消息。
回答by hariszaman
1.Check in-app product identifier on itunesconnect is same as you are using in your application
1.检查itunesconnect上的应用内产品标识符是否与您在应用程序中使用的相同
2.Check the bundle identifier for your app are same in the development profile & & itunes connect
2.在开发配置文件中检查您的应用程序的捆绑标识符是否相同 & & itunes connect
3.The status of in app purchase for which you are testing on iTunes connect should be "Ready to submit"
3.您在iTunes Connect上测试的应用内购买状态应为“准备提交”
4.Delete the app from your device clean its build from xcode if you have changed bundle identifier or provisioning profile
4.如果您更改了包标识符或配置文件,请从您的设备中删除应用程序并从 xcode 清除其构建
5.No documents agreement should be pending on iTunes connect or developer.
5.iTunes 连接或开发者不应有待处理的文件协议。
回答by Chitra Khatri
Chances are you are using provisioning profile from different developer account. check it once again.
您可能正在使用来自不同开发人员帐户的配置文件。再检查一次。
回答by Amal T S
Step 1 :Go to settings.
第 1 步:转到设置。
Step 2 :Select iTunes & Settings
第 2 步:选择 iTunes 和设置
Step 3 :Scroll to the bottom. There is a section for SANDBOX ACCOUNT
第 3 步:滚动到底部。有一个沙盒账户部分
Step 4 :Sign in there using your Sandbox account
第 4 步:使用您的 Sandbox 帐户登录
Now test your app & it will work fine.
现在测试您的应用程序,它会正常工作。