payment refactor

This commit is contained in:
2025-12-16 23:35:39 +03:30
parent f2ecada5a1
commit ea2b7d7968
10 changed files with 263 additions and 463 deletions
@@ -23,7 +23,7 @@ export class PaymentsController {
constructor(
private readonly paymentsService: PaymentsService,
private readonly paymentMethodService: PaymentMethodService,
) {}
) { }
@UseGuards(AuthGuard)
@ApiBearerAuth()
@@ -68,7 +68,7 @@ export class PaymentsController {
required: true,
})
payAnOrder(@Param('orderId') orderId: string, @RestId() restId: string) {
return this.paymentsService.startPayment(orderId, restId);
return this.paymentsService.payOrder(orderId, restId);
}
// @UseGuards(AdminAuthGuard)
// @ApiBearerAuth()