Search code examples
iosswiftin-app-purchaseapplet

Can we store iOS in app purchase receipt to our server


I am developing an in app purchase app (auto renewal) and purchase/cancellation should effect on all platform (Android, iOS, Web).

My question is what is best way to keep track the latest status of the purchase. I know there is a way called server to server notification using web hook, but I am thinking can we store the receipt data to server and validate this receipt time to time with iTunes apis?

Does receipt data change over the updates on subscription or it is same even after changing the device?

All I want to validate it at server side, because there is a possibility that user can uninstall the app or not using it.


Solution

  • Yes, you can, moreover server-to-server validation & observing is most preferable way recommended by Apple. They provided JSON API and accepts your server end-point to post any changes directly to server.

    For details read Choosing a Receipt Validation Technique and related in topic.

    The common start point is In-App Purchase