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
0 answers
Retrieve Apple in-app purchase transaction tax amount
I am implementing the API backend for Apple in-app purchases receipt validation. I wish to record the transaction including tax in a transactions table in my database for record keeping. How can I be able to retrieve the transaction details; amount…

Abd00s
- 139
- 10
2
votes
3 answers
Apple Receipt Validation - Auto-Renewable Subscription Error 21004
So I am making the call to Apples sandbox receipt verification URL, with my JSON payload containing the receipt-data and the password (shared secret, generated on iTunes Connect).
Every time I make the call I get an status of 21004 back. I have done…

Mimminito
- 2,803
- 3
- 21
- 27
2
votes
1 answer
Does iOS In-App-Purchase cancellation reflect on NSBundle.mainBundle().appStoreReceiptURL
Let's say an iOS user purchases an auto renewal subscription. I am aware that NSBundle.mainBundle().appStoreReceiptURL shows some kind of digital receipt I can use to verify the purchase and the continuation of the subscription.
Then after some…

shle2821
- 1,856
- 1
- 19
- 26
2
votes
1 answer
How to test receipt validation in this case?
I am working on converting an app from paid to free, with some of the former features under IAP. As a result, existing users need to have a copy of the IAP. In order to do this, I am using receipt validation code from Apple's Website. My goal in…

Nick Moody
- 253
- 1
- 11
2
votes
0 answers
React Native/Swift - Receipt Validation for iAP
I am trying to grab the iOS In App purchases receipt from my phone and then pass it back in a callback from Swift as something that would be compatible as a JavaScript object. Is this possible? The object in Swift is an NSData type but I get…

Brien Crean
- 2,599
- 5
- 21
- 46
2
votes
0 answers
iOS inapp purchases receipt additional payload
In my application users can make purchases linked to their accounts in the system, not apple ID. As usual iOS app sends App Store receipt to server, which validates it. I want to know, that each transaction inside receipt belongs to specific user…

vojer
- 249
- 1
- 7
2
votes
2 answers
Why is the Apple AppStore in-app receipt empty on iOS?
In application I need to implement auto-renewable subscriptions purchases.
As I understand documentation, I should check AppStore receipt on app launch and then validate that receipt with my server.
In my code I do following to retrieve…

pvshnik
- 1,760
- 3
- 12
- 14
2
votes
0 answers
How to check if an iOS app is downloaded from the App Store?
Assuming that I have an app with no in-app purchases, I just need to verify that an app has actually been downloaded from the App Store.
All the information I find when searching for this is about in-app purchase receipt validation. In order to…

DARKMATTER
- 361
- 5
- 14
2
votes
0 answers
Using iOS transaction receipt response data to get product attributes server side
I'm currently using the data from transaction.transactionReceipt to validate IAP transactions server side.
Is there a way to get the SKProduct information from this receipt data server side? Right now, when validating the receipt, you can see the…

locoboy
- 38,002
- 70
- 184
- 260
2
votes
1 answer
iOS Receipt Validation as a back-end service
Are there any providers of a service for doing iOS receipt validation rather than making your own server (recommended by Apple) or (in iOS 7) doing on-device validation?
I read about Beeblex, but their web site seems to be out of commission.

Basil Bourque
- 303,325
- 100
- 852
- 1,154
1
vote
0 answers
App Store receipt verification code 21002 with NOT Cleared For Sale
In our app we are using server side verification of receipts with app store. However the backend seems to always get 21002 error code from apple after verifying the receipt.
We are testing our IAP with TestFlight and we are able to successfully buy…

eja08
- 4,600
- 3
- 13
- 19
1
vote
0 answers
Can't get a receipt from another device for iOS
The test was conducted with one account and two devices.
Log in with your account in Device 1, run the application to pay for Product 1, and do not consume receipt.
Log in with your account in Device 1, run the application and find a receipt in…

Gunn
- 11
- 1
1
vote
0 answers
Sometimes Receipt Validation for In-App Purchase is taking to much time to give response Swift
This is my verification validation code:
func receiptValidation(completion: @escaping(_ isPurchaseSchemeActive: Bool, _ error: Error?) -> ()) {
let receiptFileURL = Bundle.main.appStoreReceiptURL
guard let receiptData = try? Data(contentsOf:…

Tulon
- 4,011
- 6
- 36
- 56
1
vote
0 answers
original_transaction_id is not coming while validating Apple receipt after Successful IAP
I have Auto-renewable IAP plan in my App, which user has to purchase to listen full song. The issue has occurred moments after the user has made the in-app purchase and the app has been notified as to the successful transaction, then the…

Riddhi Shah
- 733
- 4
- 11
- 25
1
vote
1 answer
apple in-app purchase: latest_receipt_info data sequence/sorting
I am using auto renewal in-app purchase in one of my project.
For checking expiry date I am parsing receipt and comparing subscription date with today's date. For latest subscription I am picking up last object from latest_receipt_info key, but now…

Mayank Jain
- 5,663
- 7
- 32
- 65