What is the function of this code? I'm not clear on what the user experiences. Do you have a user example set up? Is it simply: User arrives at ISP site and decides to sign up for an account. So they click "buy now" or "subscribe now" and the code generates a paypal invoice (wrapped in your template) and a form that allows them to pay with visa securly?