- push logs
This commit is contained in:
parent
de3ce1adab
commit
0fb2e1d6fa
|
@ -122,20 +122,15 @@ export const doTransaction = async (
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
const res = await axios.get(
|
const res = await axios.get(
|
||||||
`${supplier.url}?memberID=${supplier.irs_id}&pin=${supplier.irs_pin}&password=${supplier.irs_pass}&product=${productCode}&dest=${destination}&counter=1&refID=${idtrx}`,
|
`${supplier.url}?memberID=${supplier.irs_id}&pin=${supplier.irs_pin}&password=${supplier.irs_pass}&product=${productCode}&dest=${destination}&counter=1&refID=${idtrx}`,
|
||||||
)
|
);
|
||||||
.catch((error) => {
|
console.log('restransini', res);
|
||||||
if (error.response) {
|
return res.data;
|
||||||
throw 'maaf saat ini transaksi sedang tidak bisa diproses, silahkan hubungi WND Solutions untuk bisa di proses kembali';
|
} catch (e) {
|
||||||
} else if (error.request) {
|
|
||||||
throw 'maaf saat ini transaksi sedang tidak bisa diproses, silahkan hubungi WND Solutions untuk bisa di proses kembali';
|
|
||||||
} else {
|
|
||||||
throw 'maaf saat ini transaksi sedang tidak bisa diproses, silahkan hubungi WND Solutions untuk bisa di proses kembali';
|
throw 'maaf saat ini transaksi sedang tidak bisa diproses, silahkan hubungi WND Solutions untuk bisa di proses kembali';
|
||||||
}
|
}
|
||||||
});
|
|
||||||
|
|
||||||
return res.data;
|
|
||||||
|
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.log('errtransaction', err);
|
console.log('errtransaction', err);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user