mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-09-09 10:58:14 +00:00
payment
This commit is contained in:
@@ -1,9 +1,8 @@
|
|||||||
import { Body, Controller, Get, NotFoundException, Param, ParseUUIDPipe, Post, Res } from "@nestjs/common";
|
import { Controller, Get, NotFoundException, Param, ParseUUIDPipe, Post, Res } from "@nestjs/common";
|
||||||
import { PaymentService } from "./payment.service";
|
import { PaymentService } from "./payment.service";
|
||||||
import { Public } from "@edr/api-common";
|
import { Public } from "@edr/api-common";
|
||||||
import { randomUUID } from "crypto";
|
import { randomUUID } from "crypto";
|
||||||
import { Response } from "express"
|
import { Response } from "express"
|
||||||
import { UpdatePaymentStatusDto } from "./dto/update-payment-status.dto";
|
|
||||||
@Public()
|
@Public()
|
||||||
@Controller("payments")
|
@Controller("payments")
|
||||||
export class PaymentController {
|
export class PaymentController {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Injectable, Logger } from '@nestjs/common';
|
import { Injectable, } from '@nestjs/common';
|
||||||
import { ConfigService } from '@nestjs/config';
|
import { ConfigService } from '@nestjs/config';
|
||||||
import * as crypto from "crypto"
|
import * as crypto from "crypto"
|
||||||
import { TelebirrDto } from '../dto/telebirr.dto';
|
import { TelebirrDto } from '../dto/telebirr.dto';
|
||||||
@@ -43,7 +43,7 @@ export class TelebirrWebhookService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async handle(payload: TelebirrDto): Promise<void> {
|
async handle(payload: TelebirrDto): Promise<void> {
|
||||||
|
console.log(payload)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user