iOS In App Purchase:Apple审核人员会测试实时或沙盒环境吗? [英] iOS In App Purchase: Will Apple reviewers test live or sandbox environment?

查看:1370
本文介绍了iOS In App Purchase:Apple审核人员会测试实时或沙盒环境吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用In App Payment销售游戏消耗品。
成功付款后,我将付款收据转发到我的后端,后端使用iTunes付款后端验证收据。
这在沙盒环境中完美无瑕。

I use In App Payment to sell ingame consumables. After successfull payment I forward the payment receipt to my backend, which validates the receipt with the iTunes payment backend. This works flawlessly in the sandbox environment.

现在我提交了我的应用程序,以便苹果公司批准并发布到App Store。当然,我确保我的后端将使用itunes后端的生产环境验证付款收据,因为我希望Apple员工在生产模式下测试应用程序。
但是,该应用被拒绝了。作为一个原因,我被告知购买我的消耗品不起作用(由于收据无效,我的后端拒绝了)。
检查我的日志后,我看到3次尝试购买。我解码了所使用的收据,并看到所有这些都是环境=沙盒。

Now I submitted my app so it can be approved by the Apple guys and be published in the App Store. Of course I made sure that my backend will be validating the payment receipts with the production environment of the itunes backend, because I expected the Apple guys to test the app in production mode. However, the app was rejected. As a reason I was told that the purchase of my consumables does not work (refused by my backend because of an invalid receipt). After checking my logs I see 3 attempted purchases. I decoded the receipts that were used and see, that all of these are "environment" = "Sandbox".

这是否意味着Apple在沙盒模式下测试提交的应用程序?那会很疯狂!我应该在我的生产环境中允许沙箱付款还是什么?
关于这个的任何事实?

Does this mean that Apple tests submitted apps in sandbox mode? That would be crazy! Am I supposed to allow sandbox payment in my production environment or what? Any facts about this?

推荐答案

托马斯,你一定要阅读Apple关于应用程序内购买的常见问题解答:
https://developer.apple.com/library/content/technotes/tn2413/_index.html#//apple_ref/doc/uid/DTS40016228-CH1-RECEIPTURL

Thomas, you should definitely read Apple's FAQ on In-App Purchase: https://developer.apple.com/library/content/technotes/tn2413/_index.html#//apple_ref/doc/uid/DTS40016228-CH1-RECEIPTURL


始终首先使用生产URL验证收据;如果您收到21007状态代码,请继续使用沙箱URL进行验证。遵循此方法可确保您在沙盒中测试或查看应用程序时不必在URL之间切换,或者在App Store中进行切换。

Always verify your receipt first with the production URL; proceed to verify with the sandbox URL if you receive a 21007 status code. Following this approach ensures that you do not have to switch between URLs while your application is being tested or reviewed in the sandbox or is live in the App Store.

所以是的,他们有点疯狂。但我们知道,不是吗?

So yes, they are kinda crazy. But we knew that, didn't we?

这篇关于iOS In App Purchase:Apple审核人员会测试实时或沙盒环境吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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