For questions concerning the validation of iOS in-app purchase receipts against Apple servers, a recommended means of app billing fraud protection.
Questions tagged [receipt-validation]
212 questions
2
votes
1 answer
Auto-Renewing with SwiftyStoreKit
SwiftyStoreKit is a very difficult product for me since almost a week, I search everywhere in StackOverflow, YouTube, and Google for answers. I couldn't find any answer since I am working on Auto-Renewable and I tried to find out if user cancelled…

Travgalax
- 81
- 1
- 7
2
votes
1 answer
AppStore verifyReceipt returning 21007 in sandbox
I am trying to implement in app purchase for my app. I followed some instructions and got stuck in a problem. It says in the documentation to call the sandbox url if status in the response for calling the production url is 21007. But the problem is…

Leonardo da Silva
- 1,285
- 2
- 10
- 25
2
votes
2 answers
StoreKit: Transaction ID and Original Transaction ID Chaos
I've been struggling with this for some days now. I hope I get it now, but I wanted to check it with you.
For every transaction there is a SKPaymentTransaction. In a regular purchase, the property Original Transaction is empty. In a restore or auto…

MichiZH
- 5,587
- 12
- 41
- 81
2
votes
0 answers
How to recover from a failed apple receipt validation?
My organization validates receipts of purchases of our product from the App store using the verify receipt endpoint. Our logs indicate that beginning April 1, 2020, roughly 400 of these verifications failed with status code 503 being returned. …

Extranomical
- 385
- 1
- 3
- 13
2
votes
0 answers
Apple Vailidating Receipt Exeption (An existing connection was forcibly closed by the remote host)
I'm having a problem with validating my sandbox receipt. The device sends the receipt to my Azure App Service, which makes a POST request to the Apple Receipt Vaildation server. However, ~50% of the requests, I get an error back saying:…

MuSoundiX
- 88
- 8
2
votes
1 answer
verifying apple receipt with PHP is not working sometime
I'm using below code to verify apple receipt using PHP, using CURL i'm calling apple server and trying to get response.This code is working fine but sometimes apple JSON response is coming empty and i'm not getting any error message also. It just…

Praba
- 31
- 3
2
votes
3 answers
Apple In-App Purchase and Receipt Refresh
I have a side project and I recently worked on my receipt manager to make it stronger and to relies more on the receipt of the app rather than persistently storing a value after a transaction.
However, there are 2 main points which although I read…

Matteo Gobbi
- 17,697
- 3
- 27
- 41
2
votes
1 answer
In what scenarios is SKPaymentTransaction.transactionIdentifier the same as the validated receipt's transaction_id?
The documentation for SKPaymentTransaction.transactionIdentifier notes:
This value has the same format as the transaction’s transaction_id in
the receipt; however, the values may not be the same.
And the documentation for transaction_id…

Jordan H
- 52,571
- 37
- 201
- 351
2
votes
1 answer
AppsFlyer’s SDK receipt validation fails
Trying to do in‐app purchase server receipt validation using AppsFlyer’s SDK. Called the validateAndTrackInAppPurchase method inside the SKStoreKit’s completeTransaction: callback. However it fails and always returns following response.
{
…

isuru
- 3,385
- 4
- 27
- 62
2
votes
0 answers
Subscription receipt validation giving wrong product_id and expires_date on Restore
I am working on receipt validation for an auto-renew subscription. Running into a big issue when it comes to restoring. Restoring seems to be restoring an old transaction with a different product_id, thus marking my UI as expired.
Purchasing works…

Joe
- 3,772
- 3
- 33
- 64
2
votes
1 answer
Receipt Refresh causes Apple Review to Reject App due to iTunes Store Connection Error
I'm seeing a very strange thing happening with my application.
To be specific, I am issuing a receipt request in order to download a receipt from Apple when I detect that the application does not contain a receipt file in its bundle.
Sure, calling…

MariusVE
- 89
- 11
2
votes
0 answers
Is it possible to retrieve an iOS 7 style receipt from iOS 6 style receipt data?
I have an iOS app that offers in-app subscriptions. We were originally unwittingly using the now-deprecated transactionReceipt field on SKPaymentTransaction. (This was unfortunately what was provided via a third-party library we were using.) When,…

Brian Rak
- 4,912
- 6
- 34
- 44
2
votes
1 answer
Receipt validation before showing IAP-page
I have a question about our in-app purchase flow because it was rejected by Apple.
Because we don’t know if the user has a valid subscription, we have to fetch the receipt first which leads to the iTunes Store password prompt (which is the normal…

Yetispapa
- 2,174
- 2
- 30
- 52
2
votes
0 answers
How to validate ios auto-renewable subscription receipt when latest_receipt_info is missing
I have an app that has (only) auto-renewable subscriptions:
https://developer.apple.com/library/content/releasenotes/General/ValidateAppStoreReceipt/Chapters/ValidateRemotely.html
I have a backend where I validate the receipt. I use the…

Babken Vardanyan
- 14,090
- 13
- 68
- 87
2
votes
1 answer
is_trial_period stays "on" in Apple's Receipt Sandbox
I'm encountering an issue while debugging Apple's in-app purchase receipt. It seems the field "is_trial_period" stays true although the purchase has already expired.
To my understanding Apple defines short periods for debugging subscriptions, as…

gerbil
- 859
- 7
- 26