我的应用程序将有非消耗性和自动更新订阅。我正在通过应用程序中的非消耗品购买个人歌曲。并计划通过订阅销售歌曲(歌曲组)。
我在我的应用程序中实现了应用程序购买中的非消耗品。我做的方式如下
1) Stored product identifiers from my web server.
2) fetched and displayed the products.
3) when the user taps "buy" for single song, the payment will be done and i will check the
transaction receipt with apple server using my webserver.
4) if the receipt status is 0, i will make entry into my webserver database as that particular user has purchased that particular song.( by sending user id and product identifer)
5) then i deliver the content.
这就是我的做法。现在我开始实施自动更新订阅。生成共享密钥并存储在 iPhone 应用程序中。
根据文档,在与苹果服务器验证交易收据时,还需要发送共享密钥。现在我想知道以下内容
1) does my non consumable in app purchase makes sense? or am i left anything?
2) for the auto renewable subscription, once the transaction receipt is valid, what are the information i need to store in my web server.i mean, how can i know when the subscription going to expire, expire date, etc ?
3) how to check whether the subscription is valid before delivering the content?
4) if my steps to do are wrong pls suggest me how can i proceed? please share your opinion
sorry to be dumb