Here is a basic In App Purchase manager that I have used for several projects.
Dependency: The manager uses the "Reachability" class which can be found on the Apple developer site here (login required): http://developer.apple.com/library/ios/#samplecode/Reachability/Introduction/Intro.html