NTP-70935 | Shiv Natani | redirecting bottomsheet fix (#16560)

This commit is contained in:
Shiv Natani
2025-06-12 16:40:47 +05:30
committed by GitHub
parent 875fadc5a8
commit d8e8027036

View File

@@ -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)
}