Skip to content

Commit

Permalink
Changed mode of encoding threeDsMethod params with Base64 to NO_PADDI…
Browse files Browse the repository at this point in the history
…NG according to 3DS 2.0 requirements
  • Loading branch information
i.khafizov committed Dec 2, 2021
1 parent bf40254 commit 2ebc06e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 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.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
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.2
VERSION_NAME=2.5.3
VERSION_CODE=15
GROUP=ru.tinkoff.acquiring

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 2ebc06e

Please sign in to comment.