Hola, quisiera consultar ya que estoy utilizando la integracion de PayU con Web Checkout y las pruebas me estarian funcionando bien, es decir llama a la pagina de PayU y me da las opciones para generar el cupon el llamado lo hago de la sieguiente manera:
<form name="testPayU" id="testPayU" method="post" action="
https://sandbox.gateway.payulatam.com/ppp-web-gateway/">
<input name="merchantId" type="hidden" value="<?php print(PAYU_MERCHANTID); ?>" >
<input name="accountId" type="hidden" value="<?php print(PAYU_ACCOUNTID); ?>" >
<input name="description" type="hidden" value="<?php print($descItem);?>" >
<input name="referenceCode" type="hidden" value="<?php print($referenceCode);?>" >
<input name="amount" type="hidden" value="<?php print($i_transaccion);?>" >
<input name="tax" type="hidden" value="0" >
<input name="taxReturnBase" type="hidden" value="0" >
<input name="currency" type="hidden" value="ARS" >
<input name="signature" type="hidden" value="<?php print($signature);?>" >
<input name="test" type="hidden" value="0" >
<input name="buyerEmail" type="hidden" value="<?php print($dir_mail);?>" >
<input name="responseUrl" type="hidden" value="
http://www.patagondigital.com.ar" >
<input name="confirmationUrl" type="hidden" value="
http://www.sistemalewtel.com.ar/confirmationPayU.php" >
<input name="payerFullName" type="hidden" value="<?php print($nombreCliente);?>" >
<input name="extra2" type="hidden" value="<?php print($extra2);?>" >
<input name="Submit" style="visibility:hidden" type="submit" value="Enviar" >
</form>
en $nombreCliente hice las prueba con Villafaniez Emanuel y me genero la OC 7451738, por otro lado probe con el nombre APPROVED y me genero la OC 7451746 , pero en ambos casos no llamo a mi pagina de confirmacion:
http://www.sistemalewtel.com.ar/confirmationPayU.php (les adjunte los comprobantes que se generaron) ambos llegaron a mi mail.
La pagina de confirmacion es simple tiene:
<?php
$file = fopen("test.log", "w");
fwrite($file, "ENTRO CONFIRMATION" . PHP_EOL);
fwrite($file, "REQUEST:" . PHP_EOL);
$numero2 = count($_REQUEST);
$tags2 = array_keys($_REQUEST); // obtiene los nombres de las varibles
$valores2 = array_values($_REQUEST);
for($i=0;$i<$numero2;$i++){
fwrite($file, $tags2[$i]."=".$valores2[$i] . PHP_EOL);
}
fwrite($file, "POS:" . PHP_EOL);
$numero3 = count($_POST);
$tags3 = array_keys($_POST); // obtiene los nombres de las varibles
$valores3 = array_values($_POST);
for($i=0;$i<$numero3;$i++){
fwrite($file, $tags3[$i]."=".$valores3[$i] . PHP_EOL);
}
fclose($file);
?>
Esta pagina la pruebo a mano y me genera el log.
Espero la respuesta que puedan darme
Slds.