payme-integration
Version:
NestJS integration module for Payme payment system
23 lines (21 loc) • 598 B
text/typescript
import {
Body,
Controller,
HttpCode,
HttpStatus,
Post,
UseGuards,
} from '@nestjs/common';
import { PaymeBasicAuthGuard } from '../guards/payme.guard';
import { PaymeService } from './payme.service';
import { RequestBody } from './dto/requests/request-body.dto';
('api/payme')
(PaymeBasicAuthGuard)
export class PaymeController {
constructor(private readonly paymeService: PaymeService) {}
()
(HttpStatus.OK)
async handleTransactionMethods(() reqBody: RequestBody) {
return this.paymeService.handleTransactionMethods(reqBody);
}
}