Visit GitHub RepoPurchases


The in app purchase system provided by Google is missing one very important thing.

This tool will allow app developers to provide their users with codes to be redeemed in app for extra content.


This system uses Parse.com as a simple and free backend to manage your users and codes. All you need to do is create a free account and setup your app. Once you have your client and application keys, you are ready to go.

Generating Codes

To generate codes, look in the /scripts/ folder for the correct generate script and follow the instructions. Please be sure to update the keys in push_code.sh script.

For example:

To generate 5 codes with the sponser name "Bowser" on a Liux machine,

./generate_codes_on_linux.sh 5 saved_codes.txt Bowser

This will generate 5 codes, save those values to saved_codes.txt, and insert Bowser as the code sponser. The sponsor is a way to track giveaway campaigns, etc. The app can use this sponsor value to setup branding or things of that sort.

Please check out the example app for more information.

Building and Including

This library and the included example are built using Gradle.

This library is available on Maven. To include it in your project, add the following to your root build.gradle

repositories {
    maven {
        url "https://oss.sonatype.org/content/repositories/snapshots"

And add the following to your app build.gradle

compile 'com.t3hh4xx0r:uber-validation-library:0.0.2-SNAPSHOT@aar'

Please check out the provided example for more details

Join India's largest learning revolution
Free Video Tutorials
Learn Programming
Learning is a journey, let's learn together

MindOrks Newsletter
100,000+ Subscribers
A free weekly newsletter that comes with the latest Android articles, open source projects, events and hot discussions.

Subscribe Now

Featured Blogs

Our Team

MindOrks is Certainly one of the best online blog to stay on top of all the Android development news, coding and design patterns. Finally a blog I can count on to keep myself updated with latest and greatest things happening in Android world.

Vipul Shah
Android Developer