![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
03/01/2012, 14:16
|
![Avatar de Patriarka](http://static.forosdelweb.com/customavatars/avatar387800_5.gif) | | | Fecha de Ingreso: enero-2011 Ubicación: Moreno, Buenos Aires, Argentina
Mensajes: 2.851
Antigüedad: 14 años Puntos: 288 | |
Respuesta: DineroMail con PHP Cita:
Iniciado por Patriarka 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)){ 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{ 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; }} ?>
|