diff --git a/backend/src/modules/billing/billing.module.ts b/backend/src/modules/billing/billing.module.ts index d1d2c74..a81fa5e 100644 --- a/backend/src/modules/billing/billing.module.ts +++ b/backend/src/modules/billing/billing.module.ts @@ -8,12 +8,16 @@ import { SuperAdminBillingController } from './superadmin-billing.controller'; import { SuperAdminWebhookController } from './superadmin-webhook.controller'; import { PaymentsModule } from '../payments/payments.module'; import { StorageModule } from '../../common/storage/storage.module'; +import { PaymentGatewaysModule } from '../../integrations/payments/payment-gateways.module'; @Module({ imports: [ TypeOrmModule.forFeature([TenantSubscription, SuperAdminPayment]), PaymentsModule, StorageModule, + // BillingService يحقن PaymentGatewayRegistry مباشرة — و PaymentsModule + // يستورد البوابات دون إعادة تصديرها، فالاستيراد هنا صريح لا متطفّل. + PaymentGatewaysModule, ], controllers: [TenantBillingController, SuperAdminBillingController, SuperAdminWebhookController], providers: [BillingService],