Есть 2 варианта работы:
A. Простая проверка встроенных покупок.
B. Проверка с кэшированием запросов.
Подробное описание происходящего ищите в статье для журнала Хакер.
Sample for using Google In-app Billing API on a server side with Ruby on Rails. It can check consumable payments and subscriptions inside your Android application. Works with new Google API Library, version 0.11 and above.
You need to create own service account. Good HowTo here.
Two options:
A. Simple checking demo.
B. Checking with caching. Google limit free requests to 200k/day.
So it's nessasary caching to avoid repeated requests. I've made simple DB, it's oblioviosly not the best but works.
Enjoy!