function insertViewPaypal() { $idventa = Leer::get("idventa"); $bd = new BaseDatos(); $modeloventa = new ModeloVenta($bd); $venta = $modeloventa->get($idventa); $datos = array("correo-vendedor" => Configuracion::CORREO_PAYPAL, "idventa" => $venta->getId(), "precio-total" => $venta->getPrecio()); $v = new Vista("plantillaConfirmarPago", $datos); $contenido = $v->renderData(); $datos = array("contenido-general" => $contenido, "enlace" => Entorno::getEnlaceCarpeta()); $v = new Vista("plantillaPrincipal", $datos); $v->render(); exit; }