This sample shows how to use the In-app Billing Version 3 API to implement in-app product purchases for a driving game. The application demonstrates how to send In-app Billing requests, and handle synchronous responses from Google Play. The application also shows how to record item consumption with the API. The Version 3 sample includes convenience classes for processing In-app Billing operations as well as perform automatic signature verification.
Applications initiate In-app Billing requests through their own UI (first screen). Google Play responds to the request by providing the checkout user interface (middle screen). When checkout is complete, the application resumes.