update payos webhook
This commit is contained in:
28
src/Payos/payos.service.ts
Normal file
28
src/Payos/payos.service.ts
Normal file
@@ -0,0 +1,28 @@
|
||||
import { Injectable, Logger } from '@nestjs/common';
|
||||
import { PrismaService } from '../Prisma/prisma.service';
|
||||
|
||||
@Injectable()
|
||||
export class PayosService {
|
||||
constructor(private readonly prisma: PrismaService) {}
|
||||
|
||||
async ping() {
|
||||
return 'pong';
|
||||
}
|
||||
|
||||
async webhook(body: any, signature: string) {
|
||||
Logger.log('Webhook received', body);
|
||||
return body;
|
||||
}
|
||||
|
||||
async createPaymentURL(body: any) {
|
||||
return body;
|
||||
}
|
||||
|
||||
async cancelPaymentURL(body: any) {
|
||||
return body;
|
||||
}
|
||||
|
||||
async refundPayment(body: any) {
|
||||
return body;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user