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

View File

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