Skip to content

Commit

Permalink
Merge pull request #129 from Tinkoff/MC-7189-mir-3ds
Browse files Browse the repository at this point in the history
MC-7189 3ds mir
  • Loading branch information
jQwout authored Nov 9, 2022
2 parents 4519710 + 318b377 commit 771b694
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,14 @@ internal class AttachCardViewModel(
when (it.status) {
ResponseStatus.THREE_DS_CHECKING -> {
val _3dsData = it.getThreeDsData()
ThreeDsHelper.CollectData.addExtraThreeDsData(
data = _3dsData,
acsTransId = checkNotNull(it.acsTransId),
serverTransId = checkNotNull(check3dsVersionResponse?.serverTransId),
version = checkNotNull(check3dsVersionResponse?.version)
)
if (check3dsVersionResponse?.is3DsVersionV2() == true) {
ThreeDsHelper.CollectData.addExtraThreeDsData(
data = _3dsData,
acsTransId = checkNotNull(it.acsTransId),
serverTransId = checkNotNull(check3dsVersionResponse.serverTransId),
version = checkNotNull(check3dsVersionResponse.version)
)
}
changeScreenState(ThreeDsScreenState(_3dsData, null))
}
ResponseStatus.LOOP_CHECKING -> changeScreenState(LoopConfirmationScreenState(it.requestKey!!))
Expand Down

0 comments on commit 771b694

Please sign in to comment.