Ver Mensaje Individual
  #1 (permalink)  
Antiguo 08/05/2013, 12:16
mandygr87
 
Fecha de Ingreso: abril-2013
Mensajes: 82
Antigüedad: 11 años
Puntos: 0
Paypal en zend

Hola, me gustaría implementar el paypal en mi proyecto.

Hasta ahora en la vista dónde quiero realizar el pago he añadido el formulario de paypal


reservabungalow.phtml

Código PHP:
<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post">
<!-- Identify your business so that you can collect the payments. -->
<input type="hidden" name="business" value="[email protected]">
<!-- Specify a Buy Now button. -->
<input type="hidden" name="cmd" value="_xclick">
<!-- Specify details about the item that buyers will purchase. -->
<input type="hidden" name="item_name" value="Reserva Bungalow">
<input type="hidden" name="amount" value="<?php echo $this->preciototal ?>">
<input type="hidden" name="currency_code" value="EUR">
<input type="hidden" name="notify_url"
value="http://localhost/asociacion/public/cliente/reservabungalow" />
<input type="hidden" name="custom" value="12;10" />
<input type="hidden" name="return" value="http://localhost/asociacion/public/cliente/reservabungalow">
<!-- Display the payment button. -->
<input type="image" name="submit" border="0"
src="https://www.paypal.com/en_US/i/btn/btn_buynow_LG.gif"
alt="PayPal - The safer, easier way to pay online">
<img alt="" border="0" width="1" height="1"
src="https://www.paypal.com/en_US/i/scr/pixel.gif" >
</form>
Pero no sé cómo puedo recoger los datos que me devuelve paypal una vez se ha realizado el pago.

¿Alguien me puede ayudar? Estoy muy perdida en este tema. Gracias de antemano.

Otra duda que tengo es si debería recoger los datos en el mismo action desde el que envió el formulario