renew_info( array( 'session_id' => $session_id, ) ); $error = $renew_info['error']; if ( $error ) { header('Location:login.php?error='. urlencode($error)); die(); } #in the simple case, just deal with the first package $bill_date = $renew_info['dates'][0]['bill_date']; $bill_date_pretty = $renew_info['dates'][0]['bill_date_pretty']; $renew_date = $renew_info['dates'][0]['renew_date']; $renew_date_pretty = $renew_info['dates'][0]['renew_date_pretty']; $amount = $renew_info['dates'][0]['amount']; $payment_info = $freeside->payment_info( array( 'session_id' => $session_id, ) ); extract($payment_info); ?>