Switch branches/tags
Nothing to show
Clone or download
Failed to load latest commit information.
apiclient first commit Jul 10, 2014
keys empty key Jul 10, 2014
oauth2client first commit Jul 10, 2014
sg_license_service first commit Jul 10, 2014
uritemplate first commit Jul 10, 2014
.gitignore first commit Jul 10, 2014
LICENSE Initial commit Jul 10, 2014 Update Jul 10, 2014 first commit Jul 10, 2014
req.txt first commit Jul 10, 2014

#Check any Google Play Payment

To use this source you must retrieve payment token from google play purchases.


Create virtual env, clone project and install prerequisites

virtualenv .
git clone project
source ./bin/activate
pip install -r ./project/req.txt

##Account, Keys and other stuff

  • Go to
  • Create new project
  • Go to Project -> APIS & AUTH -> APIs and enable Google Play Android Developer API
  • Go to Project -> APIS & AUTH -> Credentials and create new Client ID Service Account
  • Generate and download new P12 key
  • Rename this key to key.p12 and put into keys directory
  • Go to , next Settings -> Accounts and roles -> Invite user and invite user (e-mail) from your service account above.
  • Give him financial role


This is test example, to use this on production server - use nginx+gunicorn or nginx+

./ runserver




  • package - is your application package name, ex. net.solargames.dungeonexplorer2
  • product_id - is your IAP name, ex.
  • account - is your service account email
  • key - key filename from keys directory without extension, ex. key
  • token - your purchase token from the beginning of this manual


If purchase valid, you will see:

<?xml version="1.0" encoding="UTF-8"?><result consumptionState="1" purchaseState="0" purchaseTime="1405003881937" status="0" />


<?xml version="1.0" encoding="UTF-8"?><result message="Invalid Value" status="1" />