verify payment
This commit is contained in:
@@ -124,22 +124,13 @@ export class PaymentsController {
|
||||
@UseGuards(AdminAuthGuard)
|
||||
@Permissions(Permission.MANAGE_PAYMENTS)
|
||||
@ApiBearerAuth()
|
||||
@Post('admin/payments/verify-cash-method/:paymentId')
|
||||
@ApiOperation({ summary: 'Verify cash payment ' })
|
||||
@Post('admin/payments/verify/:paymentId')
|
||||
@ApiOperation({ summary: 'Verify cash/creditcard payment ' })
|
||||
@ApiParam({ name: 'paymentId', type: 'string', description: 'Payment ID' })
|
||||
verifyCashPayment(@Param('paymentId') paymentId: string) {
|
||||
return this.paymentsService.verifyCashPayment(paymentId);
|
||||
return this.paymentsService.verifyCashAnCreditPayment(paymentId);
|
||||
}
|
||||
|
||||
@UseGuards(AdminAuthGuard)
|
||||
@Permissions(Permission.MANAGE_PAYMENTS)
|
||||
@ApiBearerAuth()
|
||||
@Post('admin/payments/verify-credit-card-method/:paymentId')
|
||||
@ApiOperation({ summary: 'Verify credit card payment' })
|
||||
@ApiParam({ name: 'paymentId', type: 'string', description: 'Payment ID' })
|
||||
verifyCreditCardPayment(@Param('paymentId') paymentId: string) {
|
||||
return this.paymentsService.verifyCreditCardPayment(paymentId);
|
||||
}
|
||||
|
||||
@UseGuards(AdminAuthGuard)
|
||||
@Permissions(Permission.VIEW_REPORTS)
|
||||
|
||||
Reference in New Issue
Block a user