refactor: remove PaymentProviderInterface and TelepagosProvider, simplify CheckoutService and related tests
This commit is contained in:
@@ -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',
|
||||
]
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user