- log digiflazz supplier
This commit is contained in:
parent
8ebd2a6622
commit
fe2b6aa264
|
@ -77,6 +77,31 @@ export const doTransaction = async (
|
|||
|
||||
return res.data;
|
||||
} else {
|
||||
// const md5HashDigiflazz = `${supplier.irs_user}${supplier.irs_pass}${idtrx}`;
|
||||
// var md5Hash = require("md5-hash");
|
||||
// console.log('testmd5', md5HashDigiflazz);
|
||||
// console.log('hashmd5', md5Hash.default("String"));
|
||||
// const options = {
|
||||
// headers: {'Content-Type': 'application/json'},
|
||||
// };
|
||||
// const data = {
|
||||
// username: supplier.irs_user,
|
||||
// customer_no: `${destination}`,
|
||||
// buyer_sku_code: `${productCode}`,
|
||||
// ref_id: `${idtrx}`,
|
||||
// sign: md5Hash.default(`${supplier.irs_user}${supplier.irs_pass}${idtrx}`),
|
||||
// testing: true,
|
||||
// };
|
||||
// const res = await axios.post(
|
||||
// `${supplier.url}/transaction`,
|
||||
// data,
|
||||
// options,
|
||||
// );
|
||||
//
|
||||
// console.log('resdigiflazz', res);
|
||||
// return res.data;
|
||||
|
||||
|
||||
const md5HashDigiflazz = `${supplier.irs_user}${supplier.irs_pass}${idtrx}`;
|
||||
var md5Hash = require("md5-hash");
|
||||
console.log('testmd5', md5HashDigiflazz);
|
||||
|
@ -85,15 +110,12 @@ export const doTransaction = async (
|
|||
headers: {'Content-Type': 'application/json'},
|
||||
};
|
||||
const data = {
|
||||
cmd: 'deposit',
|
||||
username: supplier.irs_user,
|
||||
customer_no: `${destination}`,
|
||||
buyer_sku_code: `${productCode}`,
|
||||
ref_id: `${idtrx}`,
|
||||
sign: md5Hash.default(`${supplier.irs_user}${supplier.irs_pass}${idtrx}`),
|
||||
testing: true,
|
||||
sign: md5Hash.default(`${supplier.irs_user}${supplier.irs_pass}depo`),
|
||||
};
|
||||
const res = await axios.post(
|
||||
`${supplier.url}/transaction`,
|
||||
`${supplier.url}/cek-saldo`,
|
||||
data,
|
||||
options,
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue
Block a user