feat: configure integration secret and update seeder for Telepagos integration

This commit is contained in:
2026-07-03 15:35:31 -03:00
parent 21b8fa5f35
commit ee3be8d550
4 changed files with 492 additions and 14 deletions

View File

@@ -11,10 +11,10 @@ class EncryptedIntegrationData implements CastsAttributes
{
protected function getEncrypter(): Encrypter
{
$secret = env('INTEGRATION_SECRET');
$secret = config('services.integrations.secret');
if (empty($secret)) {
throw new Exception('INTEGRATION_SECRET is not set in the environment.');
throw new Exception('The integrations secret is not configured.');
}
// Laravel encrypter requires a key of exact length. Typically 32 bytes for AES-256-CBC.