Help with BBpress forum membership customizations



I need help with my bbpress forum.

We want a purchase verifier which we will be generating at our end at uploading in the database.

Each user purchasing our product will get a unique code, which when entered will lead him onto registration for the forums for our site.

Any suggestions ? Please help