chore: add direct payment for invoice

This commit is contained in:
Mahyargdz
2025-05-14 16:31:05 +03:30
parent eae5981ea1
commit 2ac29d1a91
9 changed files with 82 additions and 19 deletions
+15 -2
View File
@@ -87,9 +87,22 @@ export class PaymentsController {
return this.paymentsService.getTransactions(queryDto);
}
@Get("verify/:gateway/:invoiceId")
verifyPaymentWithInvoice(
@Param() paramDto: VerifyParamDto,
@Query() queryDto: VerifyQueryDto,
@Res({ passthrough: true }) rep: FastifyReply,
) {
return this.paymentsService.verifyPayment(paramDto, queryDto, rep);
}
@Get("verify/:gateway")
verifyPayment(@Param() paramDto: VerifyParamDto, @Query() queryDto: VerifyQueryDto, @Res({ passthrough: true }) rep: FastifyReply) {
return this.paymentsService.verifyPayment(paramDto.gateway, queryDto, rep);
verifyPaymentWithoutInvoice(
@Param() paramDto: VerifyParamDto,
@Query() queryDto: VerifyQueryDto,
@Res({ passthrough: true }) rep: FastifyReply,
) {
return this.paymentsService.verifyPayment(paramDto, queryDto, rep);
}
///------------------- bank account -----------------------------