An example of how to implement a clean in-app purchase system.