How to check if player purchase a In App Purchase

Thank you.
Then how should I know if a player purchase a particular non-consumable IAP?