9c58f3f876e6884dfa267e019ffb6ec661871531
[freeside.git] / min_selfservice / main.php
1 <? $title ='Make A Payment'; include('elements/header.php'); ?>
2 <? $current_menu = 'payment.php'; include('elements/menu.php'); ?>
3
4 <?
5 $customer_info = $freeside->customer_info_short( array(
6   'session_id' => $_COOKIE['session_id'],
7 ) );
8
9
10 if ( isset($customer_info['error']) && $customer_info['error'] ) {
11   $error = $customer_info['error'];
12   header('Location:index.php?error='. urlencode($error));
13   die();
14 }
15
16 extract($customer_info);
17
18 ?>
19
20 <? include('elements/error.php'); ?>
21
22 <P>Hello <? echo htmlspecialchars($name); ?></P>
23
24 <P>Your current balance is <B>$<? echo $balance ?></B> how would you like to make a payment today?</P>
25
26 <div STYLE="margin-left: 25px;">
27 <a href="payment_cc.php">Credit card payment</A><BR><BR>
28 <a href="payment_ach.php">Electronic check payment</A><BR><BR>
29 <a href="payment_paypal.php">PayPal payment</A><BR><BR>
30 <a href="payment_webpay.php">Webpay payment</A><BR><BR>
31 </div>
32
33 <? include('elements/menu_footer.php'); ?>
34 <? include('elements/footer.php'); ?>