- 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(
|
||||
`${supplier.url}?memberID=${supplier.irs_id}&pin=${supplier.irs_pin}&password=${supplier.irs_pass}&product=${productCode}&dest=${destination}&counter=1&refID=${idtrx}`,
|
||||
)
|
||||
.catch((error) => {
|
||||
if (error.response) {
|
||||
throw 'maaf saat ini transaksi sedang tidak bisa diproses, silahkan hubungi WND Solutions untuk bisa di proses kembali';
|
||||
} 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';
|
||||
}
|
||||
});
|
||||
|
||||
return res.data;
|
||||
);
|
||||
console.log('restransini', res);
|
||||
return res.data;
|
||||
} catch (e) {
|
||||
throw 'maaf saat ini transaksi sedang tidak bisa diproses, silahkan hubungi WND Solutions untuk bisa di proses kembali';
|
||||
}
|
||||
|
||||
} catch (err) {
|
||||
console.log('errtransaction', err);
|
||||
|
|
Loading…
Reference in New Issue
Block a user