NTP-70935 | Shiv Natani | redirecting bottomsheet fix (#16560)
This commit is contained in:
@@ -215,7 +215,6 @@ constructor(
|
||||
private val pspManagerAnalytics = NaviPaymentAnalytics.INSTANCE.PspManager()
|
||||
|
||||
var screenLandTime: Long = 0
|
||||
var isAmountReadOnly: Boolean = true
|
||||
private var isOneClickCheckoutSetupDone = false
|
||||
|
||||
init {
|
||||
@@ -335,14 +334,6 @@ constructor(
|
||||
) {
|
||||
val actionType = payloadJson.optString(TYPE)
|
||||
if (actionType == NaviPayAction.SET_PIN.name) {
|
||||
updateBottomSheetUIState(
|
||||
showBottomSheet = true,
|
||||
bottomSheetUIState =
|
||||
OneClickCheckoutFooterBottomSheetUiState.RedirectingBottomSheet(
|
||||
titleText =
|
||||
resourceProvider.getString(R.string.redirecting_make_payment)
|
||||
),
|
||||
)
|
||||
updateLinkedBankAccounts()
|
||||
updateSelectedAccount()
|
||||
resetCheckBalanceStates()
|
||||
@@ -1016,20 +1007,11 @@ constructor(
|
||||
pspEvaluationResult: PspEvaluationResult,
|
||||
generateToken: () -> Unit,
|
||||
) {
|
||||
|
||||
if (pspEvaluationResult.isOnboardingTriggered) {
|
||||
naviPaymentAnalytics.onOnboardingTriggered(
|
||||
selectedBankAccountId = state.value.selectedAccount?.accountId.orEmpty()
|
||||
)
|
||||
updateBottomSheetUIState(
|
||||
showBottomSheet = true,
|
||||
bottomSheetUIState =
|
||||
OneClickCheckoutFooterBottomSheetUiState.RedirectingBottomSheet(
|
||||
titleText = resourceProvider.getString(R.string.redirecting_make_payment)
|
||||
),
|
||||
)
|
||||
}
|
||||
|
||||
triggerTokenGeneration(generateToken)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user