From b22ecae7aaa96df5f0e70a5bea87ee42feaf7d30 Mon Sep 17 00:00:00 2001 From: Christopher Burger Date: Tue, 2 Oct 2018 12:48:24 -0400 Subject: Revert "RT# 39340 - removed min_selfservice dir and merged into ng_selfservice" This reverts commit 77baa7974ade41e55d85de22e7d7a54273dd442f. --- min_selfservice/payment_ach.php | 113 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 113 insertions(+) create mode 100644 min_selfservice/payment_ach.php (limited to 'min_selfservice/payment_ach.php') diff --git a/min_selfservice/payment_ach.php b/min_selfservice/payment_ach.php new file mode 100644 index 000000000..04e39c537 --- /dev/null +++ b/min_selfservice/payment_ach.php @@ -0,0 +1,113 @@ + + +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'], + 'payment_payby' => 'CHEK', + ) ); + + 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 +
+
+ + +
+ + + + + \ No newline at end of file -- cgit v1.2.1