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 {