From b3c514483c23f6609f7af995f3ae089c068fcda1 Mon Sep 17 00:00:00 2001 From: Muhammad Fadli Date: Wed, 20 Sep 2023 23:52:30 +0700 Subject: [PATCH] - fix code voca in subcategory column --- src/helper/irs-api.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/helper/irs-api.ts b/src/helper/irs-api.ts index e770682..1092505 100644 --- a/src/helper/irs-api.ts +++ b/src/helper/irs-api.ts @@ -33,7 +33,7 @@ export const doTransaction = async ( return res.data; } else if (supplier.code == 'Vocagame') { - const merchantId = supplier.irs_user; + const merchantId = supplier.irs_id; const reference = idtrx const endpoint = `/transaction/${reference}`; const secretKey = supplier.irs_pass; @@ -52,7 +52,8 @@ export const doTransaction = async ( let productDestination = "" let productRegion = "" if (match) { - productDestination = match[0] + var productSplit = destination.split('(') + productDestination = productSplit[0] const insideBrackets = match[1]; productRegion = insideBrackets // This will print inside brackets } else {