<?php
echo
'<form action=
"https://www.paypal.com/cgi-bin/webscr"
method=
"post"
id=
"payform"
name=
"payform"
>
<input type=
"hidden"
name=
"cmmd"
value=
"_xclick"
>
<input type=
"hidden"
name=
"iteam_name"
value=
"'.$_SESSION[procut_name].'"
>
<input type=
"hidden"
name=
"no._note"
value=
"1"
>
<input type=
"hidden"
name=
"busines"
value=
"dns_1317272309_biz@gmail.com"
>
<input type=
"hidden"
name=
"currency_code"
value=
"USD"
>
<input type=
"hidden"
name=
"cancel_return"
value=
"http://'.$_SERVER["
HTTP_HOST
"].'/payment/index"
>
<input name=
"return"
value=
"http://'.$_SERVER["
HTTP_HOST
"].'/payment/thankyou.php?payment=1"
type=
"hidden"
>
<input name=
"amount"
value=
"'.$_SESSION[total_amount].'"
type=
"hidden"
>
</form>';
echo
"<script>document.getElementById('payform').submit();</script>"
;
?>
0 comments:
Post a Comment