|
|
Virtual ISP maintains an automated setup script that you can access directly from signup web pages that you have developed. The script requires that you pass it a number of variables, by including them in the call as follows:
http://www.gct21.net/~signup/test_interface.php?wru=secret&acct_designator=myacct (This is, of course, not the URL of the actual script; but rather, a test interface that will print back to you the variables that you are passing
You will need to pass the following variables
- wru (Who Are You?) shared secret
A password agreed upon in advance.
- acct_designator
Your standard account designator
- network
The network that you want to set the user up on
- dialup_user
The username you prefer
- dialup_pass
The password you prefer
- email_user
Not required unless you are setting up a mail account, too
- email_pass
Not required unless you are setting up a mail account, too
- customer_data
Your customer account number or name For your purposes only
- return_URL
The URL that you want the results to be passed back to.
In addition, the following variables are provided strictly for your own purposes.
When the script sucessfully executes, it will call the return URL and pass back the following result code:
- -1 or 0 = "Input Error";
- 1 = "radius ok & mail ok";
- 2 = "radius ok & mail taken";
- 3 = "radius ok & mail/password invalid";
- 4 = "radius taken & mail ok";
- 5 = "radius taken & mail taken";
- 6 = "radius taken & mail/password invalid";
- 7 = "radius/password invalid & mail ok";
- 8 = "radius/password invalid & mail taken";
- 9 = "radius/password invalid & mail/password invalid";
You can use this result code to display a message to your user and to proceed with processing on your end.
Please be sure that you call this script only from a page that your user cannot directly access; otherwise he can set up his own account. In other words, this page should be reachable only from the preceding page in your signup scrip pages that has assured itself that the user has paid for the account. the simplest method of doing this is to check the referring page and limit access to the script to that referror only.
Before you can use this script, you will need to demonstrate to us that the script cannot be called directly, and you will need to establish a shared secret with us. You will also need to tell us the URL of the page that will call the script.
|