add card processing to example self-service, RT#75279
[freeside.git] / fs_selfservice / wordpress / example_selfservice.php
index 92da5bd..c503f38 100644 (file)
@@ -4,9 +4,6 @@ require( dirname( __FILE__ ) . '/wp-blog-header.php' );
 
 $freeside = new FreesideSelfService();
 
-error_log( "COOKIE: ". $_COOKIE['freeside_session_id'] );
-error_log( "COOKIE: ". $GLOBALS['FREESIDE_SESSION_ID'] );
-
 $customer_info = $freeside->customer_info_short( array(
   'session_id' => $_COOKIE['freeside_session_id'],
 ) );
@@ -22,19 +19,55 @@ extract($customer_info);
 
 get_header();
 
-error_log( "COOKIE: ". $_COOKIE['freeside_session_id'] );
-
 ?>
 
-<P>Hello <?php echo htmlspecialchars($name); ?></P>
+<h3>Billing</h3>
+
+<p><big><strong>Name</strong></big></p>
+<p><?php echo htmlspecialchars($name); ?></p>
 
 <?php if ( $signupdate_pretty ) { ?>
-  <P>Thank you for being a customer since <?php echo $signupdate_pretty; ?></P>
+  <p><big><strong>Signup Date</strong></big></p>
+  <p><?php echo htmlspecialchars($signupdate_pretty); ?></p>
 <?php } ?>
 
-<P>Your account number is: <B><?php echo $display_custnum ?></B></P>
+<p><big><strong>Username</strong></big></p>
+<p><?php echo htmlspecialchars($svc_label) ?></p>
+
+<p><big><strong>Account Number</strong></big></p>
+<p><?php echo $display_custnum ?></p>
+
+<p><big><strong>Address</strong></big></p>
+<address>
+<?php echo htmlspecialchars($address1); ?><br>
+<?php echo strlen($address2) ? htmlspecialchars($address2).'<br>' : '' ?>
+<?php echo $city ?>, <?php echo $state ?>  <?php echo $zip ?><br>
+<?php echo $country ?>
+</address>
+
+<p><big><strong>Email Address</strong></big></p>
+<p><?php echo htmlspecialchars($invoicing_list) ?></p>
 
-<P>Your current balance is: <B><?php echo $balance_pretty ?></B></P>
+<br>
+<br>
+<br>
+<p><big><strong>Total Balance</strong></big></p>
+<h4><?php echo $balance_pretty ?></h4>
+
+<br>
+<br>
+<br>
+<p><a href="view_invoice.php?invnum=<?php echo $max_invnum ?>">View my Bill</a></p>
+<p><a href="change_bill.php">Change Bill Deliver Options</a></p>
+<p><a href="services_new.php">Order a new service</a></p>
+<p><a href="payment_cc.php">Credit card payment</a></p>
+<p><a href="process_logout.php">Logout</a></p>
+
+
+<h3>Services</h3>
+
+<h4><font color="#4682B4"> <i class="fa fa-laptop"> </i> </font> Internet </h4>
+<h4><font color="#4682B4"> <i class="fa fa-volume-control-phone"> </i> </font>   Voice </h4>
 
 <?php echo $announcement ?>
 
@@ -48,4 +81,5 @@ your tickets.  some notification if there's new responses since your last login
 anything else?
 -->
 
+
 <?php get_footer(); ?>