Questions tagged [receipt-validation]

For questions concerning the validation of iOS in-app purchase receipts against Apple servers, a recommended means of app billing fraud protection.

212 questions
6
votes
0 answers

iOS local receipt validation with CommonCrypto framework

Simple question: Did anyone manage to perform local receipt validation with CommonCrypto framework instead of OpenSSL and if yes - is there any sample code how to do that? So, replace all OpenSSL related things from Apple docs…
uerceg
  • 4,637
  • 6
  • 45
  • 63
6
votes
0 answers

How can I see if a non consumable in-app purchase is valid using Apples Receipt Validation Endpoint

I recently set up a service to validate and record purchases from my iOS in accordance with Apples documentation. After a few purchases had gone through I reviewed my table and found that I had 45 purchases that came back with a status code of 0…
Bueno
  • 1,840
  • 2
  • 15
  • 17
6
votes
1 answer

Validate Mac App Store receipt server side

I have added IAP to my Mac Appstore application. I am unable to properly validate the receipt server-side. I am reading the receipt using this code: NSURL *receiptURL = [[NSBundle mainBundle] appStoreReceiptURL]; NSData *receipt = [NSData…
koopajah
  • 23,792
  • 9
  • 78
  • 104
5
votes
2 answers

Missing transactions in Sandbox StoreKit receipt

The app I'm currently working on has a mix of non consumable products and auto renewable subscriptions. Looks like after one or two days, purchased non consumable products are removed from the Sandbox receipt. Upon restore the products are provided…
5
votes
1 answer

Mac App Store testing receipt validation (from receigen) "app is damaged and can't be opened."

I'm using Receigen (http://receigen.etiemble.com/) to do receipt validation for one of my MacOS apps. This has worked beautifully for several years, but something has changed. I haven't made an update to this app for a year or so and submitted a…
Kenny Wyland
  • 20,844
  • 26
  • 117
  • 229
5
votes
1 answer

How can you get Original Application Version in Production?

We recently transitioned a purchasable app to the "freemium" model. We are using Bundle.main.appStoreReceiptURL to pull the receipt and then check the "original_application_version" to see if a user downloaded an older paid version from the App…
Brandogs
  • 145
  • 13
5
votes
0 answers

Validating receipt from macOS App Extensions?

How a macOS App Extension can validate the app store receipt? That is, to verify whether in-app purchases for the app is valid (and continues to be valid) Apparently the main bundle points to the App Extension's bundle hence the appStoreReceiptURL…
adib
  • 8,285
  • 6
  • 52
  • 91
5
votes
1 answer

Apple IAP Receipt Validation Node.js

I'm trying to use Node.js from here for my IAP Receipt Validation, but it always returns error on a server's log: "The data in the receipt-data property was malformed." Can someone help me to properly send base64 string to Node.js and to decode it…
Michael Ros
  • 1,171
  • 9
  • 9
5
votes
2 answers

iOS in-app purchases verify receipts for consumables

in iOS with in-app purchases, it is necessary to verify receipts with subscriptions. is it necessary to verify receipts for consumables also?
5
votes
1 answer

iOS - How to delay of showing message "purchase was successful" to wait until the validation receipt finished

i've searched and can't find any way to create a delay of showing message: "Your purchase was successful" to wait until the validation receipt finished. I've tried to quote the line SKPaymentQueue.defaultQueue().finishTransaction(transaction as!…
TomSawyer
  • 3,711
  • 6
  • 44
  • 79
5
votes
1 answer

Receipt validation errors on submission to Mac app store

On Mac App Store submission my app get rejected with following explanation:- "With a valid receipt installed, the app quits on launch. The Console reports the app "Exited with exit code: 173" and the OS states the app "is damaged and can't be…
Alexander B
  • 407
  • 2
  • 17
4
votes
1 answer

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
4
votes
1 answer

How to do "receipt validations" in Flutter?

I want to add IAPs to my existing Flutter app (my first app), so I looked into this topic for a while and I am starting to understand how it works until I came across the "receipt validation" Topic. It's difficult for me to understand the answers to…
Niko Kreisz
  • 71
  • 1
  • 2
4
votes
1 answer

Does apple issue a receipt of the app when user purchase and download it?

As title said, I am implementing a flow to fetch a local receipt then try to validate it from our backend server. As what Apple suggested, if the receipt tis nil or invalid. I need to do a receipt refresh request, the problem is, this requires…
Tony Lin
  • 922
  • 6
  • 25
4
votes
2 answers

Does an app's receipt creation date get reset after an app delete?

Let's say an app was installed from the App Store on October 20 2017. The user deleted the app a month ago and reinstalled the app today. Would the receipt's Creation Date be October 20, 2017, or today's date? And a follow-up question is, does…
1 2
3
14 15