11 lines
354 B
TypeScript
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);
|
|
}
|
|
}
|