-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Apple deprecates the verifyReceipt API endpoint #85
Comments
@tannakartikey You're totally right. Last week I was actually also hit by this warning. According to your linked answer from Apple support, the API will continue to work until further notice:
I would like to discuss the options we have. As far as I understood with the new process, there are two ways the verification can happen, according to Apple: Option A: Implement the "Client-side validation" steps on the serverRefs: https://developer.apple.com/documentation/appstorereceipts/validating_receipts_on_the_device
Option B: Use the new AppStore Server API
The question is, which of these ways is more appropriate for candy_check. My currently feelings are:
|
Thanks for the write-up @jnbt The project I am working on, and probably for all those using this gem, it will be easier to adapt to Option A. I am going to look into it how to implement it. Do you have any suggestions on the starting point? We can think about implementing both options too. |
Check this code from Apple for option A: https://github.com/apple/app-store-server-library-node/blob/main/receipt_utility.ts#L17 It's from their official NodeJS package, but it comes with a warning:
|
My current approach is taking the transaction_id coming from the App for an Apple Device, getting data from Apple API for the transactions with gettrans end point. You can get the 'original_trans_id' which can be stored and used to reference back to the sub on other end points like get sub status endpoint, which will return if the sub is alive,revoked,expired etc much like their webhooks. |
Any update on this? I prefer option A (already have it manually written in my code) but it would be nice to use one library for iOS and Android. |
@jameswilliamiii Do you have some code to share? Do you pass the device UUID ( |
@jnbt check out this library (https://github.com/got2be/app-store-server-library-ruby). He has a gem released for it (https://rubygems.org/gems/app-store-server-library). My code is very similar, and i have been debating whether to pull in his library or roll my own. It would be awesome to have this as part of your gem so I could rely on one library for both iOS and Android. |
We use the
/verifyReceipt
endpoint which is deprecated by Apple.The deprecated warning:
A question on the forum answered by Apple support: When will the verifyReceipt api be deprecated?
Just wanted to start a discussion and help in any way with the next steps.
The text was updated successfully, but these errors were encountered: