From 60f9526a63c6001927186a1bc436975c349f69fe Mon Sep 17 00:00:00 2001 From: MinhhTien <92145479+MinhhTien@users.noreply.github.com> Date: Fri, 14 Jun 2024 13:00:44 +0700 Subject: [PATCH] feature:FUR-33 Close verify webhook confirm --- src/payment/controllers/payment.controller.ts | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/payment/controllers/payment.controller.ts b/src/payment/controllers/payment.controller.ts index 631a812..1952863 100644 --- a/src/payment/controllers/payment.controller.ts +++ b/src/payment/controllers/payment.controller.ts @@ -56,8 +56,8 @@ export class PaymentController { console.log('Handling PAYOS webhook', JSON.stringify(webhookData)) this.paymentService.setStrategy(PaymentMethod.PAY_OS) - // just skip for confirmWebhook - if (webhookData.data.orderCode == 123) return true + // // just skip for confirmWebhook + // if (webhookData.data.orderCode == 123) return true //1. Validate signature with other data const result = this.paymentService.verifyPaymentWebhookData(webhookData) @@ -68,13 +68,13 @@ export class PaymentController { return this.paymentService.processWebhook(webhookData) } - @ApiOperation({ - summary: 'Confirm Webhook URL for PAYOS' - }) - @Post('webhook/payos-confirm') - async verifyWebhook() { - console.log('Handling Confirm Webhook URL for PAYOS') + // @ApiOperation({ + // summary: 'Confirm Webhook URL for PAYOS' + // }) + // @Post('webhook/payos-confirm') + // async verifyWebhook() { + // console.log('Handling Confirm Webhook URL for PAYOS') - await this.paymentService.payOSPaymentStrategy.verifyWebhookUrl() - } + // await this.paymentService.payOSPaymentStrategy.verifyWebhookUrl() + // } }