diff --git a/changelog.md b/changelog.md index 4e6f7ae1..cf840418 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,10 @@ +## 2.5.3 + +#### Fixed +#### Changes +#### Additions +Changed mode of encoding threeDsMethod params with Base64 to NO_PADDING according to 3DS 2.0 requirements + ## 2.5.2 #### Fixed diff --git a/gradle.properties b/gradle.properties index c5f8a298..3bfcf7ef 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ -VERSION_NAME=2.5.2 +VERSION_NAME=2.5.3 VERSION_CODE=15 GROUP=ru.tinkoff.acquiring diff --git a/ui/src/main/java/ru/tinkoff/acquiring/sdk/ui/activities/ThreeDsActivity.kt b/ui/src/main/java/ru/tinkoff/acquiring/sdk/ui/activities/ThreeDsActivity.kt index ca6e65c3..cf627202 100644 --- a/ui/src/main/java/ru/tinkoff/acquiring/sdk/ui/activities/ThreeDsActivity.kt +++ b/ui/src/main/java/ru/tinkoff/acquiring/sdk/ui/activities/ThreeDsActivity.kt @@ -93,7 +93,7 @@ internal class ThreeDsActivity : BaseAcquiringActivity() { put("threeDSServerTransID", response.serverTransId) } - val dataBase64 = Base64.encodeToString(threeDsMethodData.toString().toByteArray(), Base64.DEFAULT).trim() + val dataBase64 = Base64.encodeToString(threeDsMethodData.toString().toByteArray(), Base64.NO_PADDING).trim() val params = "threeDSMethodData=${URLEncoder.encode(dataBase64, "UTF-8")}" hiddenWebView.postUrl(response.threeDsMethodUrl!!, params.toByteArray())