
<form action="pagopaypal.php" method="POST">
<table border="0" align="center">
<caption><font style='font-family: Trebuchet MS, Tahoma, Verdana;
									font-size: 11px;
									font-weight: normal;
									text-decoration: none;
									padding: 0px;
									margin: 20px;'>Para Realizar un pago através de PayPal introduce los datos siguientes:<br>
<br></font></caption>
<tr>
<td align="right"><font style='font-family: Trebuchet MS, Tahoma, Verdana;
									font-size: 12px;
									font-weight: normal;
									color: #6F6F6F;
									text-decoration: none;
									padding: 0px;
									margin: 20px;'>Monto</font></td><td><input type="text" name="monto"><font style='font-family: Trebuchet MS, Tahoma, Verdana;
									font-size: 12px;
									font-weight: normal;
									color: #6F6F6F;
									text-decoration: none;
									padding: 0px;
									margin:0px;'><b>USD</b></font></td>
</tr>									
<tr>
<td><font style='font-family: Trebuchet MS, Tahoma, Verdana;
									font-size: 12px;
									font-weight: normal;
									color: #6F6F6F;
									text-decoration: none;
									padding: 0px;
									margin: 20px;'>Descripción</font></td>
</tr>
<tr>
<td colspan="2"><textarea name="descripcion" cols="29"></textarea></td>
</tr>
<tr>
<td colspan="2" align="center"><input type="submit" value="Enviar" name="pago"></td>
</tr>
</table>
</form>

<?
 if(isset($_POST['pago'])){
 $des=$_POST['descripcion'];
 $monto=$_POST['monto'];
 
 if($monto==""){
		echo "<script>alert('Debes Introducir un monto Para realizar la transacción')
				     window.location.href='pagopaypal.php'
			  </script>";
				   
				 }
				 if($des==""){
				   echo "<script>alert('Debes Introducir una descripción para la Transacción')
				         window.location.href='pagopaypal.php'
				         </script>";
				   
				 }
?>
<br>
<br>
 <center>
 <font style='font-family: Trebuchet MS, Tahoma, Verdana;
									font-size: 12px;
									font-weight: normal;
									color: #6F6F6F;
									text-decoration: none;
									padding: 0px;
									margin: 20px;'>Monto A Pagar:</font><strong><? echo $monto; ?><font style='font-family: Trebuchet MS, Tahoma, Verdana;
									font-size: 12px;
									font-weight: normal;
									color: #6F6F6F;
									text-decoration: none;
									padding: 0px;
									margin: 20px;'>USD</font></strong><br>
 
 <font style='font-family: Trebuchet MS, Tahoma, Verdana;
									font-size: 12px;
									font-weight: normal;
									color: #6F6F6F;
									text-decoration: none;
									padding: 0px;
									margin: 20px;'>Descripción:</font><strong><? echo $des; ?></strong>
									<br>				
									
									<br>
<form action="https://www.paypal.com/cgi-bin/webscr" target="_blank" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="hosted_button_id" value="5ESXKWWUMHW9J">
<input type="hidden" name="business" value="mexicoenrenta@hotmail.com">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="item_name" value="<? echo $des; ?>">
<input type="hidden" name="amount" value="<? echo $monto; ?>">
<input type="image" src="https://www.paypalobjects.com/WEBSCR-640-20110429-1/en_US/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/WEBSCR-640-20110429-1/es_XC/i/scr/pixel.gif" width="1" height="1">
</form>
</center>
<?
 }
?> 
