$codigoerror="{$res->coderror}"; $codigoerrordescripcion="{$res->deserror}"; $codigoautorizacion="{$res->codautorizacion}"; $localizador="{$res->localizador}"; $idterminal="{$res->idterminal}"; $idcomercio="{$res->idcomercio}"; $moneda="{$res->moneda}"; $importe="{$res->importe}"; $firma="{$res->firma}"; } $idtransaccion2 = intval($idtransaccion); $oseMscConfig= oseRegistry :: call('msc')->getConfig('', 'obj'); $apiEmail= oseRegistry :: call('member')->getInstance('email'); $bbva = new osePaymentOrderbbva(); $db= oseDB :: instance(); $where= array(); $where[]= "`order_id` =".$idtransaccion2; $payment = oseRegistry :: call('payment'); $orderInfo = $payment->getOrder($where, 'obj'); if(empty($orderInfo)) { $mailsubject= "BBVA IPN Fatal Error on your Site"; $mailbody= "Can not search any order information with utilizing the order number feedbacked by The BBVA IPN ----------------------------------\n Invoice: ".$process->get('item_id')."\n"; $emailObj= new stdClass(); $emailObj->subject= $mailsubject;
function BBVAOneOffPostForm($orderInfo, $params = array()) { $curPath = dirname(__FILE__); require_once $curPath . DS . 'osePaymentOrderbbva.php'; $bbva = new osePaymentOrderbbva(); $html = $bbva->BBVAOneOffPostForm($orderInfo); return $html; }