feat: enhance integration setup process with error handling and validation

This commit is contained in:
2026-07-08 09:00:42 -03:00
parent f18fbc8147
commit f23029e785
4 changed files with 66 additions and 15 deletions

View File

@@ -213,4 +213,16 @@ class TelepagosIntegrationService extends BaseIntegrationService
$cacheKey = "integration_token:{$this->tenantCode}:{$this->integrationCode}";
Cache::forget($cacheKey);
}
/**
* Perform initial setup validation for Telepagos.
*
* @return void
* @throws Exception
*/
public function onSetup(): void
{
// Realiza un login de prueba para validar que las credenciales son correctas.
$this->login();
}
}