3 require( dirname( __FILE__ ) . '/wp-blog-header.php' );
5 $freeside = new FreesideSelfService();
7 error_log( "COOKIE: ". $_COOKIE['freeside_session_id'] );
8 error_log( "COOKIE: ". $GLOBALS['FREESIDE_SESSION_ID'] );
10 $customer_info = $freeside->customer_info_short( array(
11 'session_id' => $_COOKIE['freeside_session_id'],
15 if ( isset($customer_info['error']) && $customer_info['error'] ) {
16 $error = $customer_info['error'];
17 wp_redirect('example_login.php?freeside_error='. urlencode($error));
21 extract($customer_info);
25 error_log( "COOKIE: ". $_COOKIE['freeside_session_id'] );
29 <P>Hello <?php echo htmlspecialchars($name); ?></P>
31 <?php if ( $signupdate_pretty ) { ?>
32 <P>Thank you for being a customer since <?php echo $signupdate_pretty; ?></P>
35 <P>Your account number is: <B><?php echo $display_custnum ?></B></P>
37 <P>Your current balance is: <B><?php echo $balance_pretty ?></B></P>
39 <?php echo $announcement ?>
42 your open invoices if you have any & payment link if you have one. more insistant if you're late?
45 your tickets. some notification if there's new responses since your last login
51 <?php get_footer(); ?>