How does one store an in app purchase when a promo code is used to purchase a product?

I have an in-app product to be purchased, which works fine when the user buys the product throught the app. When a promo code is used the puchase goes through but the app doesn't store the product identifier. Does promo code function the same way as purchasing the product throught the app?

Replies

The identifier is available inside the receipt.

A purchase using the promo code should generate a call to updatedTransactions with a value for transaction.payment.productIdentifier that corresponds to the purchased product