- fix trx id test for hemat
This commit is contained in:
parent
cff473abd9
commit
7dcb7d30f6
|
@ -10,6 +10,7 @@ export const doTransaction = async (
|
||||||
productCode,
|
productCode,
|
||||||
destination,
|
destination,
|
||||||
idtrx,
|
idtrx,
|
||||||
|
idtrxhemat,
|
||||||
supplier,
|
supplier,
|
||||||
authorization,
|
authorization,
|
||||||
typePaid,
|
typePaid,
|
||||||
|
@ -35,7 +36,7 @@ export const doTransaction = async (
|
||||||
'Authorization': 'Bearer ' + authorization}
|
'Authorization': 'Bearer ' + authorization}
|
||||||
};
|
};
|
||||||
const data = {
|
const data = {
|
||||||
idtransaction: idtrx,
|
idtransaction: idtrxhemat,
|
||||||
destination: `${destination}`,
|
destination: `${destination}`,
|
||||||
code: `${productCode}`,
|
code: `${productCode}`,
|
||||||
type: `${typePaid}`,
|
type: `${typePaid}`,
|
||||||
|
|
|
@ -605,6 +605,8 @@ export class TransactionService {
|
||||||
})
|
})
|
||||||
.join('');
|
.join('');
|
||||||
|
|
||||||
|
const trxIdHemat = orderTransactionDto.trx_id;
|
||||||
|
|
||||||
let hitLoginHemat;
|
let hitLoginHemat;
|
||||||
|
|
||||||
if (supplier.code == 'Hemat') {
|
if (supplier.code == 'Hemat') {
|
||||||
|
@ -616,6 +618,7 @@ 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',
|
||||||
|
@ -623,6 +626,7 @@ 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',
|
||||||
|
@ -852,6 +856,7 @@ export class TransactionService {
|
||||||
})
|
})
|
||||||
.join('');
|
.join('');
|
||||||
|
|
||||||
|
const trxIdHemat = orderTransactionDto.trx_id;
|
||||||
let hitLoginHemat;
|
let hitLoginHemat;
|
||||||
|
|
||||||
if (supplier.code == 'Hemat') {
|
if (supplier.code == 'Hemat') {
|
||||||
|
@ -863,6 +868,7 @@ 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',
|
||||||
|
@ -870,6 +876,7 @@ 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',
|
||||||
|
@ -1003,7 +1010,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 {
|
||||||
|
@ -1018,6 +1025,7 @@ export class TransactionService {
|
||||||
orderTransactionDto.productCode,
|
orderTransactionDto.productCode,
|
||||||
orderTransactionDto.destination,
|
orderTransactionDto.destination,
|
||||||
trxId,
|
trxId,
|
||||||
|
trxIdHemat,
|
||||||
supplier,
|
supplier,
|
||||||
hitLoginHemat.data,
|
hitLoginHemat.data,
|
||||||
'INQUIRY'
|
'INQUIRY'
|
||||||
|
@ -1025,6 +1033,7 @@ export class TransactionService {
|
||||||
`CEK${orderTransactionDto.productCode.slice(3)}`,
|
`CEK${orderTransactionDto.productCode.slice(3)}`,
|
||||||
orderTransactionDto.destination,
|
orderTransactionDto.destination,
|
||||||
trxId,
|
trxId,
|
||||||
|
trxIdHemat,
|
||||||
supplier,
|
supplier,
|
||||||
"",
|
"",
|
||||||
'INQUIRY'
|
'INQUIRY'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user