If you use IAP (in App Purchase), you can associate a user's purchase with one receipt and check receipt to Apple servers.
For purchases on the App Store, unlike the IAP, Apple allows and to a large extent forces the developer to allow their App Store applications to work equally on as many devices as the client can host their iTunes account, without information available to the app about whether This is the first customer or his nth. If this business model does not work for you, do not place the application for sale in the application store.
source share