From a563de5fc2f42abf16fbcfda7cf5bc5f1ce794e7 Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Tue, 2 Jul 2013 11:53:40 -0700 Subject: selfservice, TNG, RT#22193 --- ng_selfservice/payment_ach.php | 104 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 104 insertions(+) create mode 100644 ng_selfservice/payment_ach.php (limited to 'ng_selfservice/payment_ach.php') diff --git a/ng_selfservice/payment_ach.php b/ng_selfservice/payment_ach.php new file mode 100644 index 000000000..e58664f81 --- /dev/null +++ b/ng_selfservice/payment_ach.php @@ -0,0 +1,104 @@ + + +process_payment(array( + 'session_id' => $_COOKIE['session_id'], + 'payby' => 'CHEK', + 'amount' => $_POST['amount'], + 'payinfo1' => $_POST['payinfo1'], + 'payinfo2' => $_POST['payinfo2'], + 'month' => 12, + 'year' => 2037, + 'payname' => $_POST['payname'], + 'paytype' => $_POST['paytype'], + 'paystate' => $_POST['paystate'], + 'ss' => $_POST['ss'], + 'stateid' => $_POST['stateid'], + 'stateid_state' => $_POST['stateid_state'], + '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; + + ?> + + + +
+ + + + + + + + + + + + + + + + + + + + +
Amount Due +
+ $ +
+
Payment amount +
+ $"> +
+
+ NAME="save" VALUE="1"> + Remember this information +
+ NAME="auto" VALUE="1" onClick="if (this.checked) { document.OneTrueForm.save.checked=true; }"> + Charge future payments to this account automatically +
+
+ + +
+ + + + + -- cgit v1.2.1