Skip to content

Commit

Permalink
Merge pull request #72 from TinkoffCreditSystems/2.5.3
Browse files Browse the repository at this point in the history
Changed mode of encoding threeDsMethod params with Base64 to NO_PADDING
  • Loading branch information
IlnarH authored Dec 7, 2021
2 parents bf40254 + 2ebc06e commit b6cd0c0
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 b6cd0c0

Please sign in to comment.