1 <? $title ='PayPal Payment'; include('elements/header.php'); ?>
2 <? $current_menu = 'payment_paypal.php'; include('elements/menu.php'); ?>
4 if ( isset($_POST['amount']) && $_POST['amount'] ) {
6 $payment_results = $freeside->start_thirdparty(array(
7 'session_id' => $_COOKIE['session_id'],
9 'amount' => $_POST['amount'],
12 include('elements/post_thirdparty.php');
16 $payment_info = $freeside->payment_info( array(
17 'session_id' => $_COOKIE['session_id'],
20 $tr_amount_fee = $freeside->mason_comp(array(
21 'session_id' => $_COOKIE['session_id'],
22 'comp' => '/elements/tr-amount_fee.html',
23 'args' => [ 'amount', $payment_info['balance'] ],
25 $tr_amount_fee = $tr_amount_fee['output'];
27 include('elements/error.php'); ?>
28 <FORM NAME="OneTrueForm" METHOD="POST" ACTION="payment_paypal.php">
31 <TD ALIGN="right">Amount Due</TD>
32 <TD>$<? echo sprintf('%.2f', $payment_info['balance']); ?></TD>
34 <? echo $tr_amount_fee; ?>
37 <INPUT TYPE="submit" NAME="process" VALUE="Start payment">
40 <? include('elements/menu_footer.php'); ?>
41 <? include('elements/footer.php'); ?>