/** * Registra una tarjeta en CCTC */ private function registrar_tarjeta_CCTC($tc, $amex = null) { $resultado = FALSE; //mapeo de la tc $tc_soap = new Tc($tc['id_clienteIn'], $tc['id_TCSi'], $tc['id_tipo_tarjetaSi'], $tc['nombre_titularVc'], $tc['apellidoP_titularVc'], $tc['apellidoM_titularVc'], $tc['terminacion_tarjetaVc'], $tc['mes_expiracionVc'], $tc['anio_expiracionVc']); //mapeo Amex if (isset($amex)) { $amex_soap = new Amex($amex['id_clienteIn'], $amex['id_TCSi'], $amex['nombre_titularVc'], $amex['apellidoP_titularVc'], $amex['apellidoM_titularVc'], $amex['pais'], $amex['codigo_postal'], $amex['calle'], $amex['ciudad'], $amex['estado'], $amex['mail'], $amex['telefono']); } else { $amex_soap = null; } try { $cliente = new SoapClient("https://cctc.gee.com.mx/ServicioWebCCTC/ws_cms_cctc.asmx?WSDL"); $parameter = array('informacion_tarjeta' => $tc_soap, 'informacion_amex' => $amex_soap); $obj_result = $cliente->InsertarTC($parameter); $simple_result = $obj_result->InsertarTCResult; //print($simple_result); return $simple_result; } catch (SoapFault $exception) { // echo "registrar_tarjeta_CCTC"; //errores en desarrollo //echo $exception; //echo '<br/>error: <br/>'.$exception->getMessage(); //exit(); return false; } }