chore: add direct payment for invoice
This commit is contained in:
@@ -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 -----------------------------
|
||||
|
||||
Reference in New Issue
Block a user