- log digiflazz supplier

This commit is contained in:
Fadli 2023-02-22 22:52:44 +07:00
parent deced5f847
commit 55b27631ba

View File

@ -42,7 +42,7 @@ export const doTransaction = async (
customer_no: `${destination}`, customer_no: `${destination}`,
buyer_sku_code: `${productCode}`, buyer_sku_code: `${productCode}`,
ref_id: `${idtrx}`, ref_id: `${idtrx}`,
sign: md5(md5HashDigiflazz), sign: md5.default(md5HashDigiflazz),
testing: true, testing: true,
}; };
const res = await axios.post( const res = await axios.post(
@ -64,7 +64,7 @@ export const doTransaction = async (
customer_no: `${destination}`, customer_no: `${destination}`,
buyer_sku_code: `${productCode}`, buyer_sku_code: `${productCode}`,
ref_id: `${billTrxId}`, ref_id: `${billTrxId}`,
sign: md5(md5HashDigiflazz), sign: md5.default(md5HashDigiflazz),
testing: true, testing: true,
}; };
const res = await axios.post( const res = await axios.post(
@ -76,7 +76,7 @@ export const doTransaction = async (
return res.data; return res.data;
} else { } else {
const md5HashDigiflazz = `${supplier.irs_user}${supplier.irs_pass}${idtrx}`; const md5HashDigiflazz = `${supplier.irs_user}${supplier.irs_pass}${idtrx}`;
console.log('hashmd5', md5(md5HashDigiflazz));
const options = { const options = {
headers: {'Content-Type': 'application/json'}, headers: {'Content-Type': 'application/json'},
}; };
@ -85,7 +85,7 @@ export const doTransaction = async (
customer_no: `${destination}`, customer_no: `${destination}`,
buyer_sku_code: `${productCode}`, buyer_sku_code: `${productCode}`,
ref_id: `${idtrx}`, ref_id: `${idtrx}`,
sign: md5(md5HashDigiflazz), sign: md5.default(md5HashDigiflazz),
testing: true, testing: true,
}; };
const res = await axios.post( const res = await axios.post(