Unexpected behavior in iTunes receipt validation server

Originator:dlahyani
Number:rdar://36274153 Date Originated:03/01/2018
Status:Open Resolved:
Product:iTunes Store Product Version:
Classification:Serious Bug Reproducible:Yes
 
Summary:
A user contacted our support team regarding issues with his subscription purchases. We got his receipt file and when we sent it for validation with the iTunes receipt validation server we ran into few unexpected results in the response we got from iTunes server as listed below:

1. For all of the transactions the "original purchase date" is within the range of 2 days in Dec. 2017 (most of them at the exact same second), while the "purchase date" and for some of the transactions even the "expiration date" is prior to the "original purchase date".

2. For each of the transactions in the "receipt.in_app" field of the receipt validation response the "transaction identifier" field is not listed in the "latest_receipt_info" array. Instead there's a parallel transaction in the "latest_receipt_info" array with the same "product id", "original transaction id", "purchase date" and "expiration date" but with different "transaction id" and "original purchase date".

3. All the transactions that are listed as "original transactions" for any of the transactions listed in the response (either in the "receipt.in_app" array or in the "latest_receipt_info" array) can not be found neither in the "receipt.in_app" array nor in the "latest_receipt_info" array. For example if we look at the transaction with ID "450000341982645", which is found in the "receipt.in_app" array, its "original transaction id" is "450000243188359", but if we look for a transaction with that ID (the ID of the original transaction) we won't find any matching transaction.


Attached are the receipt file (receipt.bin) and the response from iTunes receipt validation server (response.json).

Steps to Reproduce:
Send the attached receipt file to the receipt validation endpoint: 
https://buy.itunes.apple.com/verifyReceipt

According to the instructions specified here:
https://developer.apple.com/library/content/releasenotes/General/ValidateAppStoreReceipt/Chapters/ValidateRemotely.html#//apple_ref/doc/uid/TP40010573-CH104-SW1

Expected Results:
A standard parsed receipt response.

Actual Results:
A non-standard parsed receipt response with the issues specified above.


== LINKS TO THE RECEIPT / RESPONSE FILES WERE OMITED DUE TO USER PRIVACY ==

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!