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