- fix trx id test for hemat

This commit is contained in:
Fadli
2022-10-21 17:26:05 +07:00
parent 7dcb7d30f6
commit c6d143487c
2 changed files with 264 additions and 274 deletions

View File

@@ -10,7 +10,6 @@ export const doTransaction = async (
productCode,
destination,
idtrx,
idtrxhemat,
supplier,
authorization,
typePaid,
@@ -36,7 +35,7 @@ export const doTransaction = async (
'Authorization': 'Bearer ' + authorization}
};
const data = {
idtransaction: idtrxhemat,
idtransaction: idtrx,
destination: `${destination}`,
code: `${productCode}`,
type: `${typePaid}`,

View File

@@ -605,8 +605,6 @@ export class TransactionService {
})
.join('');
const trxIdHemat = orderTransactionDto.trx_id;
let hitLoginHemat;
if (supplier.code == 'Hemat') {
@@ -618,7 +616,6 @@ export class TransactionService {
orderTransactionDto.productCode,
orderTransactionDto.destination,
trxId,
trxIdHemat,
supplier,
hitLoginHemat.data,
product.type == 'prepaid' ? 'PURCHASE' : 'PAYMENT',
@@ -626,7 +623,6 @@ export class TransactionService {
orderTransactionDto.productCode,
orderTransactionDto.destination,
trxId,
trxIdHemat,
supplier,
"",
product.type == 'prepaid' ? 'PURCHASE' : 'PAYMENT',
@@ -856,7 +852,6 @@ export class TransactionService {
})
.join('');
const trxIdHemat = orderTransactionDto.trx_id;
let hitLoginHemat;
if (supplier.code == 'Hemat') {
@@ -868,7 +863,6 @@ export class TransactionService {
orderTransactionDto.productCode,
orderTransactionDto.destination,
trxId,
trxIdHemat,
supplier,
hitLoginHemat.data,
product.type == 'prepaid' ? 'PURCHASE' : 'PAYMENT',
@@ -876,7 +870,6 @@ export class TransactionService {
orderTransactionDto.productCode,
orderTransactionDto.destination,
trxId,
trxIdHemat,
supplier,
"",
product.type == 'prepaid' ? 'PURCHASE' : 'PAYMENT',
@@ -1010,7 +1003,7 @@ export class TransactionService {
return Math.round(Math.random() * 16).toString(16);
})
.join('');
const trxIdHemat = orderTransactionDto.trx_id;
let status;
try {
@@ -1025,7 +1018,6 @@ export class TransactionService {
orderTransactionDto.productCode,
orderTransactionDto.destination,
trxId,
trxIdHemat,
supplier,
hitLoginHemat.data,
'INQUIRY'
@@ -1033,7 +1025,6 @@ export class TransactionService {
`CEK${orderTransactionDto.productCode.slice(3)}`,
orderTransactionDto.destination,
trxId,
trxIdHemat,
supplier,
"",
'INQUIRY'