X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=ng_selfservice%2Fpayment_ach.php;fp=ng_selfservice%2Fpayment_ach.php;h=e58664f812d0995eeb3d740502e0533aebec6475;hb=2f7688b1b21d92b406d60d09cdd8edcd7a99e842;hp=0000000000000000000000000000000000000000;hpb=7d26901e658bd61078f10c0713676f94375f3283;p=freeside.git 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 +
+
+ + +
+ + + + +