How to create "access codes" to forms

I am trying to do something and trying to determine if Forms can do it or if I need another plugin.

1) I will create form "A" integrated with PayPal to pay for an "access code"
2) Along with the access code, the user will receive an email with a URL to access form "B" (the form they paid for)
3) Forms will look at a database to make sure the code is valid. If the code is in the database and hasn't been used, they will be allowed access to form "B"

I'd also like the ability to create codes to give to certain people for free access.

Thanks!.

Replies are visible only to logged in members with an active subscription.