- fix metro when response error
This commit is contained in:
parent
56c27736a7
commit
0e4d535ba3
|
@ -122,13 +122,16 @@ export const doTransaction = async (
|
|||
}
|
||||
}
|
||||
|
||||
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}`,
|
||||
);
|
||||
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}`,
|
||||
);
|
||||
return res.data;
|
||||
console.log('restranshemat', res);
|
||||
} catch (e) {
|
||||
throw 'maaf saat ini transaksi sedang tidak bisa diproses, silahkan hubungi WND Solutions untuk bisa di proses kembali';
|
||||
}
|
||||
|
||||
return res.data;
|
||||
|
||||
console.log('restranshemat', res);
|
||||
} catch (err) {
|
||||
console.log('errtransaction', err);
|
||||
console.log('errtransaction2', err.response.data);
|
||||
|
|
Loading…
Reference in New Issue
Block a user