feat: ppob callback

This commit is contained in:
Hasta Ragil Saputra
2021-11-28 22:11:15 +07:00
parent f83aaec778
commit 770231744d
18 changed files with 192 additions and 19 deletions

View File

@@ -0,0 +1,37 @@
import {
Controller,
Get,
Post,
Body,
Patch,
Param,
Delete,
HttpStatus,
Logger,
Req,
} from '@nestjs/common';
import { TransactionService } from './transaction.service';
import { CreateTransactionDto } from './dto/create-transaction.dto';
import { FastifyRequest } from 'fastify';
@Controller({
path: 'ppob_callback',
version: '1',
})
export class PpobCallbackController {
private readonly logger = new Logger(PpobCallbackController.name);
constructor(private readonly transactionService: TransactionService) {}
@Get()
get(@Req() request: FastifyRequest) {
this.logger.log({
requestQuery: request.query,
});
return {
statusCode: HttpStatus.OK,
message: 'success',
};
}
}