App Store returning empty Product ID field for certain transactions

We have an issue where, when Users attempt to restore purchase, we see empty product ids with transactions of type: SKPaymentTransactionStateRestored.

Our overall logic is to pick the latest transaction sorted by DateTime from the SKPaymentQueue with state ‘SKPaymentTransactionStateRestored’.

We have also observed similar behavior in purchases. Empty product id prevents the apps from provisioning the appropriate subscription, resulting in error. It is hard to figure out what may be going on from available documentation.

Replies

I assume you are stating that you see an empty field for product_id (or ASN.1 Field Type 1702) in the decoded receipt. If so this is either an unusual bug or a fake receipt.