I've been thinking it'd be cool to have promo codes to give out to game reviewers or as prizes for competitions etc. As in be able to just stick an extra int parameter into requestPurchase() to represent a code, and if the code has not been used for that Purchasable before (globally / across all users), the purchase succeeds
Comments
Just my two pennies ;).
Say I make a simple RPG with IAP for potions, swords etc. I decide to make a "limited edition" sword as an Entitlement Purchasable (as per Ouya IAP system) costing $0.
What I would then like to do is create 200 unique codes, and associate them with the sword. The first person to use any one particular code and pay $0 gets that sword. The code is then used up, and if someone tries to enter the code again, their purchase fails
I then run a competition where I draw 200 names out of a hat and give each person one of the unique codes
If the system works on an AND basis (i.e. code has to be correct AND normal IAPayment is made), then I can easily make "Sale: 30% off!" codes. Ouya will still get 30% of the remaining 70%
Website
Founder of ReachingPerfection.com
Have a MySQL or some other database with a table for promo code entries. You might have, say, 30 promo codes in this database table (perhaps give these away to press/bloggers/etc to review your game).
Have a PHP script which allows you to validate a promo code. If it's invalid, the script returns failure and the game will alert the user. If it's valid, the promo code is removed from the table (so only one person can use a single code) and the script returns success (and the game awards the entitlement to the player)
Website
I suppose most people developing a game on the Ouya will eventually have an website for it? anyone can easily use the same host as the ones used to host their websites to provide key authentication.
Website