Amazon Webapp IAP API Samples
Run Limit Upgrade
Example of using IAP to produce a trial number of runs for a free application
Button Clicker
Example of using Consumable and Entitlement IAP with Web Apps