Merge branch 'master' of https://gitlab.com/empatnusabangsa/ppob/ppob-backend into devops-production
This commit is contained in:
commit
2d69d31edf
|
@ -43,7 +43,6 @@ export const doTransaction = async (
|
||||||
buyer_sku_code: `${productCode}`,
|
buyer_sku_code: `${productCode}`,
|
||||||
ref_id: `${idtrx}`,
|
ref_id: `${idtrx}`,
|
||||||
sign: md5Hash(md5HashDigiflazz),
|
sign: md5Hash(md5HashDigiflazz),
|
||||||
testing: true,
|
|
||||||
};
|
};
|
||||||
const res = await axios.post(
|
const res = await axios.post(
|
||||||
`${supplier.url}/transaction`,
|
`${supplier.url}/transaction`,
|
||||||
|
@ -66,7 +65,6 @@ export const doTransaction = async (
|
||||||
buyer_sku_code: `${productCode}`,
|
buyer_sku_code: `${productCode}`,
|
||||||
ref_id: `${billTrxId}`,
|
ref_id: `${billTrxId}`,
|
||||||
sign: md5Hash(md5HashDigiflazz),
|
sign: md5Hash(md5HashDigiflazz),
|
||||||
testing: true,
|
|
||||||
};
|
};
|
||||||
const res = await axios.post(
|
const res = await axios.post(
|
||||||
`${supplier.url}/transaction`,
|
`${supplier.url}/transaction`,
|
||||||
|
@ -88,7 +86,6 @@ export const doTransaction = async (
|
||||||
buyer_sku_code: `${productCode}`,
|
buyer_sku_code: `${productCode}`,
|
||||||
ref_id: `${idtrx}`,
|
ref_id: `${idtrx}`,
|
||||||
sign: md5Hash(md5HashDigiflazz),
|
sign: md5Hash(md5HashDigiflazz),
|
||||||
testing: true,
|
|
||||||
};
|
};
|
||||||
const res = await axios.post(
|
const res = await axios.post(
|
||||||
`${supplier.url}/transaction`,
|
`${supplier.url}/transaction`,
|
||||||
|
@ -134,7 +131,6 @@ export const doTransaction = async (
|
||||||
console.log('restranshemat', res);
|
console.log('restranshemat', res);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.log('errtransaction', err);
|
console.log('errtransaction', err);
|
||||||
console.log('errtransaction2', err.response.data);
|
|
||||||
|
|
||||||
if (err.includes('Maaf Saldo anda tidak mencukupi')) {
|
if (err.includes('Maaf Saldo anda tidak mencukupi')) {
|
||||||
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';
|
||||||
|
|
Loading…
Reference in New Issue
Block a user