refactor: remove PaymentProviderInterface and TelepagosProvider, simplify CheckoutService and related tests

This commit is contained in:
2026-07-03 16:55:11 -03:00
parent 057e6757dc
commit 0cb1c37566
7 changed files with 9 additions and 105 deletions

View File

@@ -12,7 +12,7 @@ class TelepagosIntegrationSeeder extends Seeder
*/
public function run(): void
{
$integration = Integration::updateOrCreate(
Integration::updateOrCreate(
['integration_code' => 'telepagos'],
[
'name' => 'Telepagos',
@@ -24,7 +24,7 @@ class TelepagosIntegrationSeeder extends Seeder
]
);
$integrationHomo = Integration::updateOrCreate(
Integration::updateOrCreate(
['integration_code' => 'telepagos_homo'],
[
'name' => 'Telepagos Homologación',
@@ -35,16 +35,5 @@ class TelepagosIntegrationSeeder extends Seeder
]
]
);
// Seed association for sonder tenant
$tenantIntegrationService = app(\App\Domains\Integration\Services\TenantIntegrationService::class);
$tenantIntegrationService->updateOrCreateIntegration(
'sonder',
$integration,
[
'username' => 'sonder_telepagos',
'password' => 'secret123',
]
);
}
}