0

私のアプリケーションには、消耗品ではなく、自動更新可能なサブスクリプションがあります。アプリで非消耗品を介して個々の曲を購入しています。サブスクリプションによる曲 (曲のグループ) の販売も予定されています。

私は自分のアプリケーションでアプリの購入に非消耗品を実装しました。私が行った方法は次のとおりです

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
4

1 に答える 1

0
  1. はい、非消耗品については、それは理にかなっていると思います。購入するのは1回だけなので、Webサーバーデータベースに情報を入力しても問題ありません。

  2. トランザクションレシートはまさにあなたの情報源です。「一度有効」ではありませんが、サブスクリプションの有効期限が切れているかどうかを確認するには、レシートを保存する必要があります。アプリを起動するたびに(これはリソースを消費するため)、「検証のために」レシートをAppleに再度送信できます。実際、これにより、サブスクリプションがAppeでまだアクティブであるかどうか(つまり、期限内に更新されているかどうか)が確認されます。 )。Appleから返される回答には、有効期限などに関する情報が(JSON辞書に)含まれています(https://developer.apple.com/library/mac/#documentation/NetworkingInternet/Conceptual/StoreKitGuide/RenewableSubscriptions/RenewableSubscriptionsを参照してください)。 .html#// apple_ref / doc / uid / TP40008267-CH4-SW2

  3. 次に、サブスクリプションがアプリのどこかで(非永続的に)アクティブであるかどうかの情報を保存できるため、実際の実行中にコンテンツを配信するかどうかがわかります。

于 2012-08-23T07:20:54.287 に答える