I want to be able to generate a code that is configured for a given membership level and amount of time, which if someone applies it to their account, they will be upgraded to the level in the code with the EOT setup for that.
I would also like to have my free membership signup include a field for the code, which is not the same as the coupon code from pro forms.
I would also like to have an api to call from another system to generate the code such as when doing a mailing to people and I want to send them a free trial code.
I am going to build such functionality but was wondering if anyone has built anything like this.
the main thing I am worried about is if I set the EOT code with PHP and during that time the user pays for a regular recurring subscription that s2member wont take over the EOT again. I'm thinking I will have to write custom code to handle that situation.