run()" . PHP_EOL, FILE_APPEND); // Solo permitir acceso si estamos en un entorno UCRM válido if (!file_exists(__DIR__ . '/data/config.json')) { die('Acceso denegado o configuración no encontrada.'); } try { // Delegar ejecución al Plugin principal $builder = new \DI\ContainerBuilder(); $container = $builder->build(); $plugin = $container->get(\SmsNotifier\Plugin::class); $plugin->run(); } catch (\Exception $e) { file_put_contents($debugLogPath, "[" . date('Y-m-d H:i:s') . "] Error en StripeWebhook.php: " . $e->getMessage() . PHP_EOL, FILE_APPEND); http_response_code(500); echo "Error interno"; }