From 1fd9a92afa21d2ba33f1edfa73b990caca9dcd4f Mon Sep 17 00:00:00 2001 From: Lizandro Date: Sat, 18 Jul 2026 16:44:28 +0000 Subject: [PATCH] Remove manual payment application button for unconfirmed receipts Only email-confirmed payments get the apply button. Unconfirmed payments show the failure reason and direct the user to an advisor. Co-Authored-By: Claude Sonnet 4.6 --- app/Http/Livewire/Chat/PublicChat.php | 7 ------- app/Services/TelegramBotService.php | 5 +---- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/app/Http/Livewire/Chat/PublicChat.php b/app/Http/Livewire/Chat/PublicChat.php index 82e7550..68cca8e 100755 --- a/app/Http/Livewire/Chat/PublicChat.php +++ b/app/Http/Livewire/Chat/PublicChat.php @@ -493,13 +493,6 @@ class PublicChat extends Component 'action' => 'pago.aplicar', 'data' => ['monto' => $monto, 'referencia' => $datosPago['referencia'] ?? null], ]; - } elseif ($resultado['estado'] !== 'ya_usado') { - // No confirmado: ofrecer aplicar manualmente - $botones[] = [ - 'label' => 'Aplicar $' . number_format($monto) . ' (manual)', - 'action' => 'pago.aplicar', - 'data' => ['monto' => $monto, 'referencia' => $datosPago['referencia'] ?? null], - ]; } $botones[] = ['label' => 'Hablar con asesor', 'action' => 'asesor.solicitar', 'data' => []]; diff --git a/app/Services/TelegramBotService.php b/app/Services/TelegramBotService.php index 2aceeaf..d87ca13 100755 --- a/app/Services/TelegramBotService.php +++ b/app/Services/TelegramBotService.php @@ -241,11 +241,8 @@ class TelegramBotService 'sin_coincidencia' => '📧 Ningún correo coincide con este monto/fecha', default => '📧 No se pudo verificar', }; - $texto .= "\nEstado: *⚠️ No confirmado automáticamente*\n_{$motivo}_"; - - // Ofrecer aplicar manualmente si el comprobante fue leído correctamente + $texto .= "\nEstado: *⚠️ No confirmado*\n_{$motivo}_\n\nUn asesor revisará tu pago."; $buttons = [ - [['text' => "✅ Aplicar \$$monto de todas formas", 'callback_data' => 'pay_apply|' . $valor . '|' . $ref]], [['text' => '🧑 Hablar con asesor', 'callback_data' => 'agent']], [['text' => '🔙 Menú principal', 'callback_data' => 'menu']], ];