Ver Mensaje Individual
  #2 (permalink)  
Antiguo 26/07/2016, 09:40
Avatar de haggenx
haggenx
 
Fecha de Ingreso: febrero-2007
Ubicación: México
Mensajes: 823
Antigüedad: 17 años, 2 meses
Puntos: 24
Respuesta: mostrar pago paypal en una ventana

Como hacer que paypal abra en una ventana popup:

Código:
<html>
<head>
<title></title>
<script language="JavaScript">
<!--

function getscreenwidth()
{
  return screen.availWidth;
}

function getscreenheight()
{
  return screen.availHeight;
}

function showwindow(mypage, myname, w, h, scroll, tools, division, status)
{

 try
 {

   var winl = (getscreenwidth() - w) / division;
   var wint = (getscreenheight() - h) / h;
   winprops ='height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',toolbar='+tools+',status='+status

+',resizable,menubar='+tools;
   win = window.open(mypage, myname, winprops);
   if(parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
 
 }
 catch(e)
 {
 
   alert("El navegador ha bloqueada la ventana a mostrar, por favor desactive o agregue éste dominio a su lista de portales 

permitidos para mostrar ventanas emergente...");
   alert("Abra la direccion <? global $host; echo trim($host); ?>help.php para ver como puede agregar este dominio a su lista 

de portales permitidos para mostrar ventanas emergente...");
   
 }
 
}

function paypal()
{

    showwindow("", "mywindow", 200, 200, 'yes', 'yes', 2, 'yes');
    document.paypalform.submit();

}
  
   

-->
</script>
</head>
<body>

<!-- paypal -->

<form action="https://www.paypal.com/cgi-bin/webscr" method="post" style="display: inline;" target="mywindow" 

name="paypalform">
<!-- contenido de tu form paypal, pega el resto del codigo que te da paypal aqui, solo vas a reemplazar <form> y el botón de aceptar el pago para que abra en un popup -->
<a href="javascript:paypal();"><img src="https://www.paypalobjects.com/es_XC/MX/i/btn/btn_donateCC_LG.gif" alt="PayPal, 

la forma más segura y rápida de pagar en lÃ*nea." border="0" /></a>
<img alt="Donar por paypal" border="0" height="1" src="https://www.paypalobjects.com/es_XC/i/scr/pixel.gif" width="1" />
</form>
<!-- paypal -->

</body>
</html>
__________________
Mi blog informático http://marjuanm.blogspot.mx
Fanpage del blog https://www.facebook.com/pages/Mis-p...36397183215592