IAP product identifying..how? (iOS)

Hi,

The in-app purchase transaction is successing and the apple’s servers send the receipt (hexa), but i dont know how to handle this to identify witch product has been sold. How to identify it or where can i see an example for this part of iap development?

Thanks!!!:slight_smile:

transaction.productIdentifier contains the value you told the store to use as the identifier for the product, i.e. 

if transaction.productIdentifier == “com.yourcompany.yourgame.gempack20” then

      – give player their Gem Pack 20 reward

      – if Google, you can also call the store.consumePurchase() call here

end

transaction.productIdentifier contains the value you told the store to use as the identifier for the product, i.e. 

if transaction.productIdentifier == “com.yourcompany.yourgame.gempack20” then

      – give player their Gem Pack 20 reward

      – if Google, you can also call the store.consumePurchase() call here

end