summaryrefslogtreecommitdiff
path: root/fs_selfservice/php/freeside_signup_example.php
diff options
context:
space:
mode:
authorcvs2git <cvs2git>2010-12-27 00:04:45 +0000
committercvs2git <cvs2git>2010-12-27 00:04:45 +0000
commitc82d349f864e6bd9f96fd1156903bc1f7193a203 (patch)
treee117a87533656110b6acd56fc0ca64289892a9f5 /fs_selfservice/php/freeside_signup_example.php
parent74e058c8a010ef6feb539248a550d0bb169c1e94 (diff)
This commit was manufactured by cvs2svn to create tag 'TORRUS_1_0_9'.TORRUS_1_0_9
Diffstat (limited to 'fs_selfservice/php/freeside_signup_example.php')
-rw-r--r--fs_selfservice/php/freeside_signup_example.php49
1 files changed, 0 insertions, 49 deletions
diff --git a/fs_selfservice/php/freeside_signup_example.php b/fs_selfservice/php/freeside_signup_example.php
deleted file mode 100644
index 8b1dc193c..000000000
--- a/fs_selfservice/php/freeside_signup_example.php
+++ /dev/null
@@ -1,49 +0,0 @@
-<?
-
-require('freeside.class.php');
-$freeside = new FreesideSelfService();
-
-$response = $freeside->new_customer( array(
- 'agentnum' => 1,
-
- 'first' => $_POST['first'],
- 'last' => $_POST['last'],
- 'address1' => $_POST['address1'],
- 'address2' => $_POST['address2'],
- 'city' => $_POST['city'],
- 'state' => $_POST['state'],
- 'zip' => $_POST['zip'],
- 'country' => 'US',
- 'daytime' => $_POST['daytime'],
- 'fax' => $_POST['fax'],
-
- 'payby' => 'BILL',
- 'invoicing_list' => $_POST['email'],
-
- 'pkgpart' => 2,
- 'username' => strtolower($_POST['username']),
- '_password' => strtolower($_POST['password'])
-) );
-
-error_log("[new_customer] received response from freeside: $response");
-$error = $response['error'];
-
-if ( ! $error ) {
-
- // sucessful signup
-
- $custnum = $response['custnum'];
-
- error_log("[new_customer] signup up with custnum $custnum");
-
-} else {
-
- // unsucessful signup
-
- error_log("[new_customer] signup error:: $error");
-
- // display error message to user
-
-}
-
-?>