苹果开发——App内购以及验证store的收据(一)
时间:2014-05-05 11:44:12
收藏:0
阅读:513
原地址:http://zengwu3915.blog.163.com/blog/static/27834897201375105236580?suggestedreading
发了几天时间在网上折腾了几天,终于把App内购给弄好了。分享一下个人经验
一、 在iTunesConnect中创建内购的App,然后为这个App设置一些产品(付费道具等)
打开iTunesConnect网站https://itunesconnect.apple.com/WebObjects/iTunesConnect.woa。成功登录后进入管理页面


for Upload"就可以了。这里的Bundle ID 一定要与项目的info.plist中的Bundle
ID保持一致,不然会内购不成功或到别人账户里去了。


这里会出现五个项,如果你只看到一个”Free Subscription",这个时候,请先去完成“Contracts, Tax, and
Banking”的资料填写,可以参考苹果开发——设置iTunes Connect中的Contracts, Tax, and
Banking

类型说明:
1. Consumable 消耗品: 每次下载都需要付费, 游戏中的收付道具或充值一般都用这个类型来实现
2. Non-consumable 非消耗品: 仅需要付费一次, 游戏中如果有什么收费补丁或收费地图什么的,可以用这个
3. Auto-Renewable Subscriptions
自动订阅:允许用户购买一个持续时间更新的东西,并自动续期,游戏中少见,一般杂志订阅会用到
4. Free Subscription 免费订阅: 这个你懂的
5. Non-Renewing Subscription 非自动订况:
我们做游戏收费道具,选择第一个“Consumable”,之后设置一些产品的信息

Product ID:你产品的唯一id,通常格式是com.xx.xx,但它可以是任何形式(中文和特殊符号除久),不要求以程序的App
ID作为前缀
Price Tier:选择价格,这里你选择价格后会出现各种货币对应的价格对照表。Add Language:添加产品名称与描述语言,这里可以设置不同语言不同的描述。产品的名称会在购买时显示给玩家
Screenshot 截图:展示你产品的截图,测试时可以不用管。
一路Save保存回到“Manage In-App
Purchases”页面中,你会看到我们新建的产品,同样的方法,你也可以创建多个产品。只要保证Product ID 不同就行,其他的随意。

做sandbox测试时,In-App Purchases设置到这里就可以了。但真正上线时还得继续设置下去。
这里没有上传截图的状态是“Waiting for Screenshot”,我们上传一个截图后状态变为"Ready to
Submit",为什么不是“Submit for Review”

如果产品都设置好了,点Done回到”App Information"中,确定为App状态为“Prepare for Upload”时,点“view
Details”


选择App中所需要加入的产品



到此,App iTunes
Connect上所有的设置都完成,直等上传二进制文件发布等待审核通过了。传说内购产品的审核在App审核通过之后才开始。
二、申请测试账号。利用sandbox测试模式模拟App Store购买流程
回到iTunes Connect主页面中,选择”Manage Users“ 然后选择”Test User“ 然后点”Add New
User“,创建几个测试用的账号就可以了

记住账号和密码哈,记不住就删掉重新建
娃哈哈~(切记:不能用于真正的AppStore中使用此账号,不仅不能用,而且一旦AppStore发现后果你懂得~)
评论(0)