merge webpay support in with autoselection of old realtime_bop and realtime_refund_bop
[freeside.git] / fs_selfservice / FS-SelfService / cgi / make_thirdparty_payment.html
1 <HTML><HEAD><TITLE>My Account</TITLE></HEAD>
2 <BODY BGCOLOR="#eeeeee"><FONT SIZE=5>MyAccount</FONT><BR><BR>
3 <SCRIPT TYPE="text/javascript">
4   function popcollect() {
5     overlib( OLiframeContent('<%= $popup_url %>', 336, 550, 'Secure Payment Area', 0, 'auto' ), CAPTION, 'Pay now', STICKY, AUTOSTATUSCAP, MIDX, 0, MIDY, 0, DRAGGABLE, CLOSECLICK, BGCOLOR, '#333399', CGCOLOR, '#333399', CLOSETEXT, 'Close' );
6     return false;
7   }
8 </SCRIPT>
9 <SCRIPT TYPE="text/javascript" SRC="overlibmws.js"></SCRIPT>
10 <SCRIPT TYPE="text/javascript" SRC="overlibmws_iframe.js"></SCRIPT>
11 <SCRIPT TYPE="text/javascript" SRC="overlibmws_draggable.js"></SCRIPT>
12 <SCRIPT TYPE="text/javascript" SRC="overlibmws_crossframe.js"></SCRIPT>
13 <SCRIPT TYPE="text/javascript" SRC="iframecontentmws.js"></SCRIPT>
14 <%= $url = "$selfurl?session=$session_id;action="; ''; %>
15 <%= include('myaccount_menu') %>
16 <TD VALIGN="top">
17 <FONT SIZE=4>Pay now</FONT><BR><BR>
18
19 <%= if ( $error ) {
20   $OUT .= qq!<FONT SIZE="+1" COLOR="#ff0000">$error</FONT><BR><BR>!;
21 }else{
22   $OUT .= <<EOF;
23     You are about to contact our payment processor to pay $amount.<BR><BR>
24     Your transaction reference number is $reference <BR><BR>
25     <FORM NAME="collect_popper" method="post" action="javascript:void(0)" onSubmit="popcollect()">
26 EOF
27
28   my %itemhash = @collectitems;
29   foreach my $input (keys %itemhash) {
30     $OUT .= qq!<INPUT NAME="$input" TYPE="hidden" VALUE="$itemhash{$input}">!;
31   }
32
33   $OUT .= qq!<INPUT NAME="submit" type="submit" value="Pay now">!;
34   $OUT .= qq!</FORM>!;
35 }
36 %>
37 </TD></TR></TABLE>
38 </BODY></HTML>