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

What is the format of the cancellation_date field in Apple IAP receipt / status notifications

The Apple documentation for server to server notifications does not specify what data format will come in the cancellation_date field. I'm trying to setup some unit tests for my notification handler but I'm not sure what data to put in my mock…
jmichas
  • 1,139
  • 1
  • 10
  • 21
4
votes
1 answer

iOS StoreKit Transaction Identifier does not match Receipt

I'm using the receipt to validate a purchase after I get the SKPaymentTransactionStatePurchased notification, and among other things get the expiration date for the subscription the user just purchased. To properly identify the transaction that…
Aleksander
  • 2,735
  • 5
  • 34
  • 57
4
votes
2 answers

Request the date when a user purchased app on the App Store using Swift

I have a paid app that has been on the App Store for a year. I am wanting make two changes to this app; 1) make the app free, and, 2) add advertising. But, I’m wanting to ensure that current users who purchased the app never see advertising. Two…
user4806509
  • 2,925
  • 5
  • 37
  • 72
4
votes
2 answers

Documentation or meaning of the pending_renewal_info attribute in an In-App Purchase receipt?

Has anyone encountered the pending_renewal_info attribute while validating a receipt for an In-App Purchase or can anyone point to documentation regarding this field? I have looked at the Apple documentation for Receipt Validation but do not see any…
cclark
  • 1,402
  • 3
  • 17
  • 25
4
votes
1 answer

When is iOS app receipt not available?

I want to read the original application version from the app's receipt. In development the app contains no receipt since it's not installed from the store. I need to start a SKReceiptRefreshRequest in order to get a sandbox receipt. But that prompts…
Frank Rupprecht
  • 9,191
  • 31
  • 56
4
votes
2 answers

Receipt Validation - Receipt maintained after app delete?

In the process of verifying a receipt with the app store, the receipt data is extracted from the bundle. If the user makes a purchase, deletes the app, and then reinstalls it, is the receipt still in the bundle ? Not sure how it would be.
stackQA
  • 309
  • 2
  • 13
4
votes
2 answers

Use of unresolved identifier 'PKCS7_type_is_signed'

I'm writing the receipt validation code in swift, but I have a problem with a PKCS7_type_is_signed macro : Use of unresolved identifier 'PKCS7_type_is_signed' Are there any way to use it in Swift except of creating Objective-C wrapper for this…
CryingHippo
  • 5,026
  • 1
  • 28
  • 32
4
votes
1 answer

How to implement iOS Auto Renew Subscription receipt validation for iOS app

I want to publish an iOS app that has an auto renewing subscription. While there is a ton of information regarding this, much is outdated so I will state what I have accomplished so far. I am working in Swift 2.0, so any objective C code will not…
gbotha
  • 1,231
  • 17
  • 23
4
votes
0 answers

How to determine an IAP's original purchase date (by combining Purchase Date and Original Purchase Date), examining receipt only?

In the OS X app (10.9+) I'm writing, I'd like to determine the original purchase date of a non-consumable in-app purchase. This sounds straight forward, but there are two relevant fields, and Apple's docs don't seem to clearly state how to combine…
Ashley
  • 5,865
  • 1
  • 19
  • 20
4
votes
0 answers

Restoring in-app-purchase transactions, getting same transaction ID

I'm testing in app purchases in sandbox mode currently, and every time I restore previous transactions my receipt includes the original transcation ID in both the transaction_id fields and the original_transaction_id fields. From reading the Apple…
4
votes
1 answer

iOS Receipt Validation - Auto Renewing Subscription

I'm having an issue validating receipts for an auto-renewing IAP. Below is a summary of my code for verifying subscriptions. I'm using Parse for a backend, and have some of that code included also. In development mode, everything works perfectly and…
tcd
  • 1,585
  • 2
  • 17
  • 38
4
votes
1 answer

What to do with transactionReceipt deprecation for IAP?

I am currently validating transaction.transactionReceipt base64encoded as a string server side. The problem is that transaction.transactionReceipt is deprecated now and I don't know what to replace this with for in app purchases. The new…
locoboy
  • 38,002
  • 70
  • 184
  • 260
4
votes
4 answers

In App Receipt Validation with Swift returns code 21002

I've sent my data to the server in hopes of validating a receipt and am getting a malformed response (21002). The json that I send to iTunes validates in JSONlint.org and looks like the…
krisacorn
  • 831
  • 2
  • 13
  • 23
4
votes
1 answer

iOS 7: in app purchase receipt validation and verification

I am new to receipt validation in iOS. I have implemented in-app purchase successfully. Now I wish to include receipt validation part in this in-app puchase. My in-app purchase is for 3 products. I want that before purchase of each single product in…
z22
  • 10,013
  • 17
  • 70
  • 126
3
votes
1 answer

What's the path name of appStoreReceiptURL in App Review environment?

Is Bundle.main.appStoreReceiptURL?.lastPathComponent "receipt" or "sandboxReceipt" in App Review environment? I want to know the result of this TestFlight check code in App Review environment.
an0
  • 17,191
  • 12
  • 86
  • 136