私のアプリケーションには、消耗品ではなく、自動更新可能なサブスクリプションがあります。アプリで非消耗品を介して個々の曲を購入しています。サブスクリプションによる曲 (曲のグループ) の販売も予定されています。
私は自分のアプリケーションでアプリの購入に非消耗品を実装しました。私が行った方法は次のとおりです
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 アプリに保存します。
ドキュメントに従って、Apple サーバーでトランザクションの受信を確認するときに、共有シークレットも送信する必要があります。以下のことを知りたいです
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