iTunes cross-platform IAP subscriptions - how does Netflix do it?

前端 未结 2 1981
天命终不由人
天命终不由人 2020-12-12 23:32

I\'m creating a service which allows users to register on any number of devices (web, Android, Roku, iOS, Apple TV), and then purchase a monthly subscription to watch video

2条回答
  •  不思量自难忘°
    2020-12-13 00:22

    I know this is old, but Apple recently introduced Status Update Notifactions which accomplishes what the OP asked for via webhooks:

    1. Configure Apple to send notifications to your specified endpoint. (Apple's small guide)
    2. Handle the JSON object that's sent via HTTP POST from the App Store and validate latest receipt.
    3. Update/save data to your database.
    4. Respond with a 200 status code to report a success.

    You'll be able to handle the following notification types: INITIAL_BUY, CANCEL, RENEWAL, INTERACTIVE_RENEWAL, DID_CHANGE_RENEWAL_PREFERENCE

    The documentation in the link above explains implementation and types in more detail.

提交回复
热议问题