From 3e30a64bf0cdb01afdaf357b519dfe5128d90c4c Mon Sep 17 00:00:00 2001 From: Muhammad Fadli Date: Tue, 30 May 2023 10:45:07 +0700 Subject: [PATCH 1/2] - fix check bill send callback to partner --- src/transaction/ppob_callback.controller.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/transaction/ppob_callback.controller.ts b/src/transaction/ppob_callback.controller.ts index 3a91318..fef6bb2 100644 --- a/src/transaction/ppob_callback.controller.ts +++ b/src/transaction/ppob_callback.controller.ts @@ -46,7 +46,7 @@ export class PpobCallbackController { try { const response = request.query; - if (response['message'].toLowerCase().includes('cek tagihan')) { + if (response['message'].toLowerCase().includes('cek')) { if (response['status'] != 20) { //TODO: UPDATE GAGAL await this.transactionService.updateBill( From 86b0bd8e68fd64b91e3e3abf0a0ea75045ce41ed Mon Sep 17 00:00:00 2001 From: Muhammad Fadli Date: Tue, 30 May 2023 10:46:05 +0700 Subject: [PATCH 2/2] - fix check bill send callback to partner --- src/transaction/transaction.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/transaction/transaction.service.ts b/src/transaction/transaction.service.ts index 826ec17..bcb4a0c 100644 --- a/src/transaction/transaction.service.ts +++ b/src/transaction/transaction.service.ts @@ -2757,7 +2757,7 @@ export class TransactionService { `Bill dari ${billData.destination} adalah ${ amount + product_price.partner_fee + product_price.mark_up_price }.` : - ''; + 'Bill tidak ditemukan'; const statusResponse = status ? 'berhasil' : 'gagal'; this.callbackToPartner(