From d9c8917fd6884259ded9a27738705f550030fec3 Mon Sep 17 00:00:00 2001 From: Muhammad Fadli Date: Thu, 5 Oct 2023 23:49:08 +0700 Subject: [PATCH] feat : - implement vocagame supplier in prod --- src/helper/irs-api.ts | 2 +- src/transaction/transaction.controller.ts | 22 +++++++++++----------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/helper/irs-api.ts b/src/helper/irs-api.ts index 92d1e2f..97fd487 100644 --- a/src/helper/irs-api.ts +++ b/src/helper/irs-api.ts @@ -71,7 +71,7 @@ export const doTransaction = async ( }, price: productPrice, // Price equals from items reference: reference, // Your reference I - callbackUrl: "https://ppob-backend.k3s.bangun-kreatif.com/v1/ppob_callback/vocagame" // Set your endpoint callback + callbackUrl: "https://api.wndsolutions.id/v1/ppob_callback/vocagame" // Set your endpoint callback } const res = await axios.post( diff --git a/src/transaction/transaction.controller.ts b/src/transaction/transaction.controller.ts index d7357d4..8fd660e 100644 --- a/src/transaction/transaction.controller.ts +++ b/src/transaction/transaction.controller.ts @@ -90,16 +90,16 @@ export class TransactionController { @Body() orderTransactionDto: OrderTransactionDto, @Request() req, ) { - // if (req.get('host').includes('ppob-backend.k3s.bangun-kreatif.com')) { - // return { - // data: await this.transactionService.orderTransaction( - // orderTransactionDto, - // req.user, - // ), - // statusCode: HttpStatus.CREATED, - // message: 'success', - // }; - // } else { + if (req.get('host').includes('ppob-backend.k3s.bangun-kreatif.com')) { + return { + data: await this.transactionService.orderTransaction( + orderTransactionDto, + req.user, + ), + statusCode: HttpStatus.CREATED, + message: 'success', + }; + } else { return { data: await this.transactionService.orderTransactionProd( orderTransactionDto, @@ -108,7 +108,7 @@ export class TransactionController { statusCode: HttpStatus.CREATED, message: 'success', }; - // } + } } @Post('order-bill-prod')