diff --git a/src/helper/irs-api.ts b/src/helper/irs-api.ts index 220dee8..68d9763 100644 --- a/src/helper/irs-api.ts +++ b/src/helper/irs-api.ts @@ -42,7 +42,7 @@ export const doTransaction = async ( customer_no: `${destination}`, buyer_sku_code: `${productCode}`, ref_id: `${idtrx}`, - sign: md5(md5HashDigiflazz), + sign: md5.default(md5HashDigiflazz), testing: true, }; const res = await axios.post( @@ -64,7 +64,7 @@ export const doTransaction = async ( customer_no: `${destination}`, buyer_sku_code: `${productCode}`, ref_id: `${billTrxId}`, - sign: md5(md5HashDigiflazz), + sign: md5.default(md5HashDigiflazz), testing: true, }; const res = await axios.post( @@ -76,7 +76,7 @@ export const doTransaction = async ( return res.data; } else { const md5HashDigiflazz = `${supplier.irs_user}${supplier.irs_pass}${idtrx}`; - console.log('hashmd5', md5(md5HashDigiflazz)); + const options = { headers: {'Content-Type': 'application/json'}, }; @@ -85,7 +85,7 @@ export const doTransaction = async ( customer_no: `${destination}`, buyer_sku_code: `${productCode}`, ref_id: `${idtrx}`, - sign: md5(md5HashDigiflazz), + sign: md5.default(md5HashDigiflazz), testing: true, }; const res = await axios.post(