user5462477
user5462477

Reputation: 221

Validating receipts with the App Store deprecated

When was validating receipts with the App Store deprecated?

When will this stop working? I can’t find any information on this?

https://developer.apple.com/documentation/appstorereceipts/verifyreceipt

buy.itunes.apple.com/verifyReceipt

Upvotes: 13

Views: 10040

Answers (1)

zangw
zangw

Reputation: 48536

Refer to the answer to this question When will the verifyReceipt api be deprecated from Apple Developer Forums.

The verifyReceipt and App Store Server Notification v1 are marked for deprecation which means moving forward the API will not receive any new features and updates. It will continue to function until an end-of-life date is announced.

The end-of-life date is currently yet to be determined and the developer will get a notification in advance prior to the end of life.

Currently, the recommendation is to scope and start using App Store Server API and App Store Server Notification v2 as soon as possible, leveraging existing resources such as available documentation and App Store Server Library.

App Store Server API


Per this doc https://developer.apple.com/documentation/appstorereceipts/verifyreceipt#4209023

The verifyReceipt endpoint is deprecated. The HTTP header includes the deprecation date, according to RFC 8594.


What should we do

Several ways of ios receipt verification on the server side

  • Local receipt validation on the server
  • App Store Server API
    • To validate in-app purchases on your server without using receipts, call the App Store Server API (like Get Transaction Info) to get Apple-signed transaction and subscription information for your customers, or verify the AppTransaction a Transaction signed data that your app obtains
    • Here is one app store server API implementation by Golang https://github.com/richzw/appstore
  • App Store server Notification

Upvotes: 7

Related Questions