Skip to content

Commit

Permalink
feature:FUR-33 Close verify webhook confirm
Browse files Browse the repository at this point in the history
  • Loading branch information
MinhhTien committed Jun 14, 2024
1 parent 3abbada commit 60f9526
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/payment/controllers/payment.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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()
// }
}

0 comments on commit 60f9526

Please sign in to comment.