core/billing-finance-core/src/modules/webhooks/webhook.service.ts
2025-12-27 13:58:47 -03:00

11 lines
354 B
TypeScript

import { Injectable } from '@nestjs/common';
import { PaymentService } from '../payments/payment.service';
@Injectable()
export class WebhookService {
constructor(private readonly paymentService: PaymentService) {}
handleGatewayWebhook(gateway: string, payload: unknown) {
return this.paymentService.reconcileByWebhook(gateway, payload);
}
}