Manage promotional code for IAP inside game

hi all,

I want to manage promotional code for IAP inside my game.
(ex: I want to send code by mail, and the user, enter this code to unlock functionnality of game whitout buy them by IAP system.)
Did someone have an idea to start ?

thx

I’m also looking for doing something like that, from the info I’ve gathered so far…

First of all, make sure you are not hardcoding it in to the app… If it somehow leaks out, well…

Best way seems to be interfacing with a web server, validating the given code. That would allow you to generate new codes, check which ones used, etc… With the right server side code of course…

Using php and mySQL would be one way to get this to work, and is what I’m using for my next game. Users can upgrade through regular IAP, or they can get a code from me that they can enter in the game to upgrade. I manually send them a code by email. When they enter the code, it is sent to a php script on my site that checks the mySQL datbase to see if the code is valid, and if so it will deactivate the code.