<?php global $access; if($access != 1){ exit("Direct Access not allowed"); } ?>

<center><h3>Wait a few seconds, we are processing and validating your information...</h3><br>

<img src="<?php echo PATH; ?>images/loader.gif" alt="" width="470" height="300" />

</center>

<?php 
//user will be redirected to this url upon successful payment (can be blank if you want)
	$RETURN_URL = SITE."confirmation.php?itinerary_id=".$itinerary_id."&email_client=".$email_client."&rooms=".$totalrooms."&totaladults=".$totaladults."&totalchildren=".$totalchildren."&gateway=Paypal"; 
?>

			<form name="_xclick" action="https://www.paypal.com/cgi-bin/webscr" method="post" name="formpago" id="formpago">
        	  <input type="hidden" name="cmd" value="_xclick">
              <input type="hidden" name="business" value="<?php echo PAYPAL_ADDRESS; ?>">
              <INPUT TYPE="hidden" name="charset" value="utf-8">
              <input type="hidden" name="currency_code" value="<?php echo CURRENCY_CODE; ?>">
              <input type="hidden" name="item_name" value="<?php echo $hotel_name; ?>">
              <input type='hidden' name='item_number' value='<?php echo $itinerary_id; ?>'>
              <input type='hidden' name='amount' value='<?php echo $total_amount; ?>'>
              <input type="hidden" name="custom" value="bookingo"/>
              <input type="hidden" name="first_name" value="<?php echo $firstnameCustomer; ?>">
              <input type="hidden" name="last_name" value="<?php echo $lastnameCustomer; ?>">
              <input type="hidden" name="email" value="<?php echo $emailCustomer; ?>">
              <input type="hidden" name="return" value="<?php echo $RETURN_URL; ?>">
    		  <input type="hidden" name="notify_url" value="<?php echo IPN_URL; ?>"/>
              <input type='hidden' name='cancel_return' value='<?php echo SITE; ?>'>
        	</form>