xcode 应用内购买测试 mzfinance.InAppBuyLoginRequired_message(沙盒)

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/10828983/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 00:26:50  来源:igfitidea点击:

In-app purchase testing mzfinance.InAppBuyLoginRequired_message (sandbox)

xcodeios-simulatorin-app-purchaseapp-store-connect

提问by Cherr Skees

I am working on an in-app purchase... I had things working fine in the simulator/(sandbox mode). I'm still working on some stuff with the app and testing. Today when I tested the in app purchase I get.

我正在进行应用程序内购买……我在模拟器/(沙盒模式)中运行良好。我仍在使用该应用程序进行一些工作并进行测试。今天,当我测试应用内购买时,我得到了。

In-app purchase testing mzfinance.InAppBuyLoginRequired_message (sandbox)

应用内购买测试 mzfinance.InAppBuyLoginRequired_message(沙盒)

I looked in iTunes connect and it said “Rejected” under the in app purchase. I didn't put complete descriptions but didn't think it mattered because I had previously developer rejected the app.

我查看了 iTunes Connect,它在应用内购买下显示“已拒绝”。我没有提供完整的描述,但认为这无关紧要,因为我之前曾被开发人员拒绝过该应用程序。

So I deleted the in app purchase... uploaded/rejected another binary and added the new in app purchase. I used the same apple-id to test. The first time, it said Successful. I try it again and I get the same error message.

所以我删除了应用内购买...上传/拒绝了另一个二进制文件并添加了新的应用内购买。我使用相同的apple-id 进行测试。第一次,它说成功。我再试一次,但收到相同的错误消息。

In-app purchase testing mzfinance.InAppBuyLoginRequired_message (sandbox)

应用内购买测试 mzfinance.InAppBuyLoginRequired_message(沙盒)

Any idea what's going on? I assume the code is fine since I haven't changed it. Its something with iTunes connect setup or something.

知道发生了什么吗?我认为代码很好,因为我没有改变它。它与 iTunes 连接设置或其他东西有关。

回答by Ri100

I had the same problem, i couldnt buy any in-app because i've seen every time :

我遇到了同样的问题,我无法购买任何应用程序,因为我每次都看到:

mzfinance.InAppBuyLoginRequired_message (sandbox)

mzfinance.InAppBuyLoginRequired_message(沙盒)

Earlier i tested my in-app purchases on this test account and everything was fine. I created new test account in iTunesConnect and it helps!.

早些时候我在这个测试帐户上测试了我的应用内购买,一切都很好。我在 iTunesConnect 中创建了新的测试帐户,它有帮助!。

Go to:

去:

https://itunesconnect.apple.com/

https://itunesconnect.apple.com/

Select:

选择:

"Manage users" >> "Test user"

“管理用户”>>“测试用户”

Next "Add new user" and create new user with any e-mail adress (i used imaginary e-mail adress). This work for me, i'm using now this second account to testing.

接下来“添加新用户”并使用任何电子邮件地址创建新用户(我使用了虚构的电子邮件地址)。这对我有用,我现在正在使用第二个帐户进行测试。

Regards

问候

回答by Misha Karpenko

Same stuff happening since 31 May 2012. Noticed this behavior only in the simulator, on the device everything is ok.

自 2012 年 5 月 31 日以来发生了同样的事情。仅在模拟器中注意到此行为,在设备上一切正常。

I've managed testing on the simulator every time creating new test user at iTunesConnect. It's very time consuming but otherwise it doesn't work.

每次在 iTunesConnect 上创建新的测试用户时,我都会在模拟器上管理测试。这是非常耗时的,否则它不起作用。

回答by Naveed Abbas

It doesn't come when you buy the app for the first time. (Creating new user means buying it first time). It comes when you are trying to restore the InApp purchase and haven't properly handled the restore purchases.

当您第一次购买该应用程序时,它不会出现。(创建新用户意味着第一次购买)。当您尝试恢复 InApp 购买并且没有正确处理恢复购买时,就会出现这种情况。

See the "Restoring Transactions" section in In-App Purchase Programming Guide.

请参阅应用内购买编程指南中的“恢复交易”部分。