I am looking for some advice on how to setup the following functionality:
I create a product which is a unique 8 digit code. There are over 1000 of these pre generated. The user clicks Buy Now on my site, they then purchase the code through PayPal/EJ.
Upon payment they receive a code. With this code they can then login to my site and use the feature.
I am after some advice on how this would be done best. What the customer is purchasing is basically a password. Due to the number, using 1000 if/else statements is not something I would like to do.
Can anyone offer any advice on how this is best done?