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