Merge branch 'development' of https://gitlab.com/empatnusabangsa/ppob/ppob-backend into devops-staging
This commit is contained in:
commit
5dcbc3336d
|
@ -77,6 +77,31 @@ 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);
|
||||||
|
@ -85,15 +110,12 @@ export const doTransaction = async (
|
||||||
headers: {'Content-Type': 'application/json'},
|
headers: {'Content-Type': 'application/json'},
|
||||||
};
|
};
|
||||||
const data = {
|
const data = {
|
||||||
|
cmd: 'deposit',
|
||||||
username: supplier.irs_user,
|
username: supplier.irs_user,
|
||||||
customer_no: `${destination}`,
|
sign: md5Hash.default(`${supplier.irs_user}${supplier.irs_pass}depo`),
|
||||||
buyer_sku_code: `${productCode}`,
|
|
||||||
ref_id: `${idtrx}`,
|
|
||||||
sign: md5Hash.default(`${supplier.irs_user}${supplier.irs_pass}${idtrx}`),
|
|
||||||
testing: true,
|
|
||||||
};
|
};
|
||||||
const res = await axios.post(
|
const res = await axios.post(
|
||||||
`${supplier.url}/transaction`,
|
`${supplier.url}/cek-saldo`,
|
||||||
data,
|
data,
|
||||||
options,
|
options,
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user