preauth comp void is corrected, removed password on preauth and cashout trans
This commit is contained in:
parent
73195ebc62
commit
1021025f5c
@ -98,7 +98,7 @@ fun buildMenuItems(
|
||||
modifier = Modifier.size(32.dp),
|
||||
tint = Color.LegacyRed
|
||||
)
|
||||
}) { onNavigateAction("Pre-Auth") },
|
||||
}) { onNavigateAmount("Pre-Auth") },
|
||||
DashboardMenuItem(
|
||||
"Pre-Auth Void",
|
||||
{
|
||||
@ -138,5 +138,5 @@ fun buildMenuItems(
|
||||
modifier = Modifier.size(32.dp),
|
||||
tint = Color.LegacyRed
|
||||
)
|
||||
}) { onNavigateAction("Cash Out") },
|
||||
}) { onNavigateAmount("Cash Out") },
|
||||
)
|
||||
|
||||
@ -111,9 +111,9 @@ fun AppNavGraph(
|
||||
},
|
||||
onNavigateAmount = { action ->
|
||||
when (action) {
|
||||
"Pre-Auth",
|
||||
"Cash Out",
|
||||
"Sale" -> {
|
||||
sharedViewModel.transactionsType.value = TransactionsType.SALE
|
||||
sharedViewModel.processCode.value = ProcessCode.SALE_PURCHASE + ProcessCode.SMART + ProcessCode.TO_ACCOUNT
|
||||
navController.navigate(Routes.Amount.createRoute(action)) {
|
||||
launchSingleTop = true
|
||||
}
|
||||
|
||||
@ -69,6 +69,7 @@ fun ProcessingRoute(
|
||||
}
|
||||
TransResultStatus.REVERSAL_SUCCESS -> onNavigateMain()
|
||||
TransResultStatus.REVERSAL_FAIL -> onNavigateMain()
|
||||
TransResultStatus.ERROR -> onNavigateMain()
|
||||
else -> {}
|
||||
}
|
||||
}
|
||||
|
||||
@ -219,13 +219,13 @@ class TransProcessViewModel @Inject constructor(
|
||||
|
||||
_transResultStatus.value =
|
||||
TransResultStatus.SECONDARY
|
||||
|
||||
_state.value = _state.value.copy("Processing with Secondary Host")
|
||||
startOnlineProcess()
|
||||
|
||||
} else {
|
||||
|
||||
_errorMessage.value = message
|
||||
|
||||
_state.value = _state.value.copy("Error - $message")
|
||||
_transResultStatus.value =
|
||||
TransResultStatus.ERROR
|
||||
}
|
||||
|
||||
@ -18,6 +18,7 @@ import com.utsmyanmar.paylibs.network.ISOSocket;
|
||||
import com.utsmyanmar.paylibs.network.exception.ReversalException;
|
||||
import com.utsmyanmar.paylibs.system.SystemDateTime;
|
||||
import com.utsmyanmar.paylibs.utils.AuthorizationProcessUtil;
|
||||
import com.utsmyanmar.paylibs.utils.CardType;
|
||||
import com.utsmyanmar.paylibs.utils.MessageType;
|
||||
import com.utsmyanmar.paylibs.utils.core_utils.SystemParamsOperation;
|
||||
import com.utsmyanmar.paylibs.utils.enums.CardScheme;
|
||||
@ -400,7 +401,8 @@ public class TransactionsOperation {
|
||||
newPay.setCardInfo(oldPay.getCardInfo());
|
||||
/*
|
||||
* new requirements */
|
||||
newPay.setCardType(AidlConstants.CardType.IC.getValue());
|
||||
// for cz it's only alow "012"
|
||||
newPay.setCardType(CardType.NO_CARD.getValue());
|
||||
newPay.setPINCipher("55");
|
||||
newPay.setTransCVM(TransCVM.SIGNATURE);
|
||||
}
|
||||
|
||||
@ -200,7 +200,7 @@ public class BitmapConfig {
|
||||
public static final String CZ_PRE_AUTH="7020058020C09000";
|
||||
public static final String CZ_PRE_AUTH_VOID="7038058028C08000";
|
||||
public static final String CZ_PRE_AUTH_COMP="703805802CC08000";
|
||||
public static final String CZ_PRE_AUTH_COMP_VOID="703805802CC08004";
|
||||
public static final String CZ_PRE_AUTH_COMP_VOID="7038058008C00000";
|
||||
|
||||
public static final String UPI_SALE = "7020058020C09200";
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user