process_payment(array( 'session_id' => $_COOKIE['session_id'], 'payby' => 'CARD', 'amount' => $_POST['amount'], 'payinfo' => $_POST['payinfo'], 'paycvv' => $_POST['paycvv'], 'month' => $_POST['month'], 'year' => $_POST['year'], 'payname' => $_POST['payname'], 'address1' => $_POST['address1'], 'address2' => $_POST['address2'], 'city' => $_POST['city'], 'state' => $_POST['state'], 'zip' => $_POST['zip'], 'country' => $_POST['country'], 'save' => $_POST['save'], 'auto' => $_POST['auto'], 'paybatch' => $_POST['paybatch'], //'discount_term' => $discount_term, )); if ( $payment_results['error'] ) { $payment_error = $payment_results['error']; } else { $receipt_html = $payment_results['receipt_html']; } } if ( $receipt_html ) { ?> Your payment was processed successfully. Thank you.

payment_info( array( 'session_id' => $_COOKIE['session_id'], ) ); if ( isset($payment_info['error']) && $payment_info['error'] ) { $error = $payment_info['error']; header('Location:index.php?error='. urlencode($error)); die(); } extract($payment_info); $error = $payment_error; $tr_amount_fee = $freeside->mason_comp(array( 'session_id' => $_COOKIE['session_id'], 'comp' => '/elements/tr-amount_fee.html', 'args' => [ 'amount', $balance ], )); //$tr_amount_fee = $tr_amount_fee->{'error'} || $tr_amount_fee->{'output'}; $tr_amount_fee = $tr_amount_fee['output']; ?>
Amount Due
$
Card type
NAME="save" VALUE="1"> Remember this card and billing address
NAME="auto" VALUE="1" onClick="if (this.checked) { document.OneTrueForm.save.checked=true; }"> Charge future payments to this card automatically