y mas adelante solo llamaba esa funcion de recuperar_productos().
Código PHP:
Ver original<form name='formTpv' method='post' action='https://www.sandbox.paypal.com/cgi-bin/webscr' style="border: 1px solid #CECECE;padding-left: 10px;">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="upload" value="1">
<input type="hidden" name="currency_code" value="USD">
<input name="shopping_url" type="hidden" value="http://mandresa.com/prueba/mayorista/catalogo.php">
<input name="return" type="hidden" value="http://mandresa.com/prueba/mayorista/exito.php">
<input type='hidden' name='cancel_return' value='http://mandresa.com/prueba/mayorista/errorPaypal.php'>
<input name="notify_url" type="hidden" value="http://mandresa.com/prueba/mayorista/paypalipn.php">
<input name="rm" type="hidden" value="2">
<?php
recuperar_productos();
?>