un ejemplo:
Código PHP:
Ver original<?php
SrvLog::logRequest($_REQUEST);
if(isset($_REQUEST["Notificacion"])){ /*$notificacion = "";/*"<?xml version=\'1.0\' encoding=\'ISO-8859-1\'?><notificacion><tiponotificacion>1</tiponotificacion><operaciones><operacion><tipo>1</tipo><id>00000000128875139173</id></operacion></operaciones></notificacion>";*/
$notificacion = $_REQUEST["Notificacion"];
SrvLog::logNotificacion($Notificacion);
foreach($Notificacion->operaciones as $operacion) {
$id_operacion = $operacion->operacion->id;
if(DineroMail::isOperacionAcreditada($id_operacion)){
utils_SrvLog::logNotificacionSuccess($Notificacion);
$sql_tid = "SELECT ID, USERID
FROM `transaction_details`
WHERE `TRANSACTIONID` = '$id_operacion'";
$t_ids[]=$row_tid['ID']; //OBTENGO TODOS LOS ID DE TRANSACCION
}
}else{
utils_SrvLog::logNotificacionError($Notificacion);
}
}
$deal_quantity=0;
foreach ($t_ids as $tid) {
$mensaje = 'La trasaccion fue un exito!.';
/*
* SETEO COMO EXITO LA TRANSACCION
*/
$sql_transation="UPDATE `user`.`transaction_details` SET `ACK` = 'confirmada',
`CAPTURED` = '1' WHERE `transaction_details`.`ID` =".$tid;
}}
?>