On my server, I am calling Apple's https://buy.itunes.apple.com/verifyReceipt
endpoint which returns a json object with receipt data.
However, this object doesn't seem to have the productId
of the purchased in-app purchase.
I need to know the productId so I actually know which IAP was bought...surely there is some sort of identifier for the actual product purchased?
All in-app purchase transactions are stored in the array in_app
of responseBody
. Each object in in_app
contains field product_id
:
The full list of in_app
fields is here https://developer.apple.com/documentation/appstorereceipts/responsebody/receipt/in_app