diff options
| author | Christopher Burger <burgerc@freeside.biz> | 2018-10-02 12:48:24 -0400 |
|---|---|---|
| committer | Christopher Burger <burgerc@freeside.biz> | 2018-10-03 07:38:10 -0400 |
| commit | 12a25a18d4ad44b3881f56ee81cb9917fb3379ee (patch) | |
| tree | 1c6259a39437c1947d44dddf38006f027124ee86 /min_selfservice/payment_webpay.php | |
| parent | b12396807379004bfdd4d9e30b9f8f502b706b9e (diff) | |
Revert "RT# 39340 - removed min_selfservice dir and merged into ng_selfservice"
This reverts commit 77baa7974ade41e55d85de22e7d7a54273dd442f.
Diffstat (limited to 'min_selfservice/payment_webpay.php')
| -rw-r--r-- | min_selfservice/payment_webpay.php | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/min_selfservice/payment_webpay.php b/min_selfservice/payment_webpay.php new file mode 100644 index 000000000..e4343fcb4 --- /dev/null +++ b/min_selfservice/payment_webpay.php @@ -0,0 +1,41 @@ +<? $title ='Webpay Payment'; include('elements/header.php'); ?> +<? $current_menu = 'payment_webpay.php'; include('elements/menu.php'); ?> +<? +if ( isset($_POST['amount']) && $_POST['amount'] ) { + + $payment_results = $freeside->start_thirdparty(array( + 'session_id' => $_COOKIE['session_id'], + 'method' => 'CC', + 'amount' => $_POST['amount'], + )); + + include('elements/post_thirdparty.php'); + +} else { + + $payment_info = $freeside->payment_info( array( + 'session_id' => $_COOKIE['session_id'], + ) ); + + $tr_amount_fee = $freeside->mason_comp(array( + 'session_id' => $_COOKIE['session_id'], + 'comp' => '/elements/tr-amount_fee.html', + 'args' => [ 'amount', $payment_info['balance'] ], + )); + $tr_amount_fee = $tr_amount_fee['output']; + + include('elements/error.php'); ?> +<FORM NAME="OneTrueForm" METHOD="POST" ACTION="payment_webpay.php"> + <TABLE> + <TR> + <TD ALIGN="right">Amount Due</TD> + <TD>$<? echo sprintf('%.2f', $payment_info['balance']); ?></TD> + </TR> + <? echo $tr_amount_fee; ?> + </TABLE> + <BR> + <INPUT TYPE="submit" NAME="process" VALUE="Start payment"> +</FORM> +<? } ?> +<? include('elements/menu_footer.php'); ?> +<? include('elements/footer.php'); ?>
\ No newline at end of file |
