Skip to content

Commit

Permalink
Merge pull request #74 from TinkoffCreditSystems/2.5.4
Browse files Browse the repository at this point in the history
Fixed crash during 3DS Method v2.x when `threeDsMethodUrl` is absent
  • Loading branch information
IlnarH authored Dec 13, 2021
2 parents b6cd0c0 + a86ca6b commit 573da55
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 5 deletions.
7 changes: 7 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## 2.5.4

#### Fixed
Fixed crash during 3DS Method v2.x when `threeDsMethodUrl` is absent
#### Changes
#### Additions

## 2.5.3

#### Fixed
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION_NAME=2.5.3
VERSION_NAME=2.5.4
VERSION_CODE=15
GROUP=ru.tinkoff.acquiring

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class ThreeDsState(val data: ThreeDsData) : AsdkState()
/**
* Состояние, когда необходимо собрать информацию об устройстве для прохождения 3DS
*/
class CollectDataState(val response: Check3dsVersionResponse?) : AsdkState() {
class CollectDataState(val response: Check3dsVersionResponse) : AsdkState() {
var data: MutableMap<String, String> = mutableMapOf()
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ internal object FpsScreenState: Screen()
internal class BrowseFpsBankScreenState(val paymentId: Long, val deepLink: String, val banks: Set<Any?>?) : Screen()
internal class RejectedCardScreenState(val cardId: String, val rejectedPaymentId: Long) : Screen()
internal class ThreeDsScreenState(val data: ThreeDsData) : Screen()
internal class ThreeDsDataCollectScreenState(val response: Check3dsVersionResponse?) : Screen()
internal class ThreeDsDataCollectScreenState(val response: Check3dsVersionResponse) : Screen()
internal class LoopConfirmationScreenState(val requestKey: String) : Screen()

internal sealed class LoadState : ScreenState()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ internal class ThreeDsActivity : BaseAcquiringActivity() {
return intent
}

fun collectData(context: Context, response: Check3dsVersionResponse?): MutableMap<String, String> {
fun collectData(context: Context, response: Check3dsVersionResponse): MutableMap<String, String> {
var threeDSCompInd = THREE_DS_NOT_CALLED_FLAG
if (response != null) {
if (response.threeDsMethodUrl != null) {
val hiddenWebView = WebView(context)

val threeDsMethodData = JSONObject().apply {
Expand Down

0 comments on commit 573da55

Please sign in to comment.