Added Trial purchase code

Needs to be tested, want to review code with Mark