在Apple审核期间,无法进行应用内购买 [英] In App Purchases don't work during Apple review

查看:84
本文介绍了在Apple审核期间,无法进行应用内购买的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

应用内购买可在沙盒环境中使用,但在Apple审核期间无法使用,这会导致应用被拒绝:

In App Purchases work in Sandbox environment but don't work during Apple review which results in the app rejection:

我找不到问题,因为在具有沙盒帐户的测试设备上,In App内购买效果良好.我确实也将IAP发送给审核,并且不进行任何形式的收据验证.

I can't find the problem as In App purchases work well on the test device with Sandbox accounts. I did send the IAPs for review as well and I don't do any kind of receipt validation.

在哪里可以找到问题根源的任何想法?

Any ideas where I can find the problem roots?

推荐答案

始终首先使用生产URL验证收据;如果您收到21007状态代码,请继续使用沙盒URL进行验证.采用这种方法,可以确保您无需在沙箱中测试或审查您的应用程序或将其放置在App Store中时在URL之间切换.

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.

21007状态码表示此收据是沙盒收据,但已发送给生产服务以进行验证.状态为0表示收据已正确验证.

The 21007 status code indicates that this receipt is a sandbox receipt, but it was sent to the production service for verification. A status of 0 indicates that the receipt was properly verified.

查看此处: https://developer.apple.com/library/content/releasenotes/General/ValidateAppStoreReceipt/Chapters/ValidateRemotely.html

如何验证收据(iOS)?

始终首先使用生产URL验证收据;如果您收到21007状态代码,请继续使用沙盒URL进行验证.采用这种方法,可以确保您无需在沙箱中测试或审查您的应用程序或将其放置在App Store中时在URL之间切换.

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.

https://developer.apple.com/library/content/technotes/tn2259/_index.html

这篇关于在Apple审核期间,无法进行应用内购买的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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