diff --git a/application/modules/refundkmt/refundkmt.controller.js b/application/modules/refundkmt/refundkmt.controller.js index 5870729..2b7768b 100644 --- a/application/modules/refundkmt/refundkmt.controller.js +++ b/application/modules/refundkmt/refundkmt.controller.js @@ -58,8 +58,10 @@ const callbackOy = async (req, res) => { winston.logger.warn( `${uniqueCode} [ RESPONSE REFUND-KMT ]: ${JSON.stringify(result)}` ); + + let recipient_bank_code = recipient_bank.toLowerCase(); // check trx_id yang di request match - let checkRequest = await model.checkRedeem(partner_trx_id, trx_id, amount, recipient_bank, recipient_account); + let checkRequest = await model.checkRedeem(partner_trx_id, trx_id, amount, recipient_bank_code, recipient_account); if (!checkRequest) { result = { @@ -95,7 +97,7 @@ const callbackOy = async (req, res) => { trx_id: trx_id, partner_trx_id: partner_trx_id, amount: amount, - recipient_bank: recipient_bank, + recipient_bank: recipient_bank_code, recipient_account: recipient_account, }, };