Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 389
user5462477 Avatar asked Feb 28 '26 17:02

user5462477


1 Answers

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
    • Do the Validating receipts on the device on your server, verify the contents of app receipts by decoding and parsing the receipt on the device
  • 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
    • You can also get the same signed transaction and subscription information from the App Store Server Notifications V2 endpoint
like image 68
zangw Avatar answered Mar 02 '26 08:03

zangw



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!