This commit is contained in:
2025-12-03 23:07:36 +03:30
parent ccabe04b60
commit 4e2bf34ab4
3 changed files with 21 additions and 36 deletions
@@ -26,18 +26,6 @@ export class PaymentsController {
return this.paymentMethodService.findByRestaurant(restId);
}
@Post('public/payments/verify')
@ApiOperation({ summary: 'Verify a payment' })
@ApiBody({ type: VerifyPaymentDto })
@ApiNotFoundResponse({ description: 'Payment not found' })
verifyPayment(@Body() verifyPaymentDto: VerifyPaymentDto) {
return this.paymentsService.verifyPayment(
verifyPaymentDto.authority,
verifyPaymentDto.amount,
verifyPaymentDto.orderId,
);
}
// @UseGuards(AdminAuthGuard)
// @ApiBearerAuth()
// @Get('admin/payments')
@@ -127,4 +115,12 @@ export class PaymentsController {
removeRestaurantPaymentMethod(@Param('paymentMethodId') paymentMethodId: string) {
return this.paymentMethodService.remove(paymentMethodId);
}
@Post('public/payments/verify')
@ApiOperation({ summary: 'Verify a payment' })
@ApiBody({ type: VerifyPaymentDto })
@ApiNotFoundResponse({ description: 'Payment not found' })
verifyPayment(@Body() verifyPaymentDto: VerifyPaymentDto) {
return this.paymentsService.verifyPayment(verifyPaymentDto.authority, verifyPaymentDto.orderId);
}
}