Skip to content

Commit

Permalink
Release 6.4.5
Browse files Browse the repository at this point in the history
  • Loading branch information
jenkins-mobile committed Dec 6, 2021
1 parent 1e44ad8 commit cc7be18
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.4.4
6.4.5
2 changes: 1 addition & 1 deletion .version_code
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6040400
6040500
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
### NEXT_VERSION_DESCRIPTION_BEGIN
### NEXT_VERSION_DESCRIPTION_END

## [6.4.5] (06-12-2021)

- Add confirmation in tokenize

## [6.4.4] (11-11-2021)

- Update auth lib
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,7 @@ the library will use all available payment methods;
* gatewayId (String): gatewayId for the store;
* customReturnUrl (String): url of the page (only https supported) where you need to return after completing 3ds. It should only be used if a custom Activity is used for 3ds url. If Checkout.createConfirmationIntent() or Checkout.create3dsIntent() is used, don't specify this parameter;
* userPhoneNumber (String): user's phone number. It's used for autofilling fields for payments via SberPay. Supported format: "+7XXXXXXXXXX".
* googlePayParameters (GooglePayParameters): settings for payments via Google Pay;
* customerId (String): unique customer id for your system, ex: email or phone number. 200 symbols max. Used by library to save user payment method and display saved methods. It is your responsibility to make sure that a particular customerId identifies the user, which is willing to make a purchase. For example use two-factor authentication. Using wrong id will let the user to use payment methods that don't belong to this user.
* googlePayParameters (GooglePayParameters): settings for payments via Google Pay.

Fields of the `Amount` class:
* value (BigDecimal): amount;
Expand Down
3 changes: 1 addition & 2 deletions README_RU.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ android {
* customReturnUrl (String) - url страницы (поддерживается только https), на которую надо вернуться после прохождения 3ds. Должен использоваться только при при использовании своего Activity для 3ds url. При использовании Checkout.createConfirmationIntent() или Checkout.create3dsIntent() не задавайте этот параметр;
* userPhoneNumber (String) - номер телефона пользователя. Используется для автозаполнения поля при оплате через SberPay. Поддерживаемый формат данных: "+7XXXXXXXXXX".
* googlePayParameters (GooglePayParameters) - настройки для оплаты через Google Pay.
* customerId (String) - уникальный идентификатор покупателя в вашей системе, например электронная почта или номер телефона. Не более 200 символов. Используется, если вы хотите запомнить банковскую карту и отобразить ее при повторном платеже в mSdk. Убедитесь, что customerId относится к пользователю, который хочет совершить покупку. Например, используйте двухфакторную аутентификацию. Если передать неверный идентификатор, пользователь сможет выбрать для оплаты чужие банковские карты.

Поля класса `Amount`:
* value (BigDecimal) - сумма;
Expand Down Expand Up @@ -618,4 +617,4 @@ class ScanBankCardActivity : Activity() {
* [Сайт ЮKassa](https://yookassa.ru)
* [Документация мобильных SDK на сайте ЮKassa](https://yookassa.ru/docs/client-sdks/#mobil-nye-sdk)
* [Демо-приложение в Google Play](https://play.google.com/store/apps/details?id=ru.yoo.sdk.kassa.payments.example.release)
* [SDK для iOS](https://github.com/yoomoney/yookassa-payments-swift)
* [SDK для iOS](https://github.com/yoomoney/yookassa-payments-swift)
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ private const val TMX_SESSION_ID = "tmx_session_id"
private const val AMOUNT = "amount"
private const val SAVE_PAYMENT_METHOD = "save_payment_method"
private const val CSC = "csc"
private const val CONFIRMATION = "confirmation_type"
private const val PAYMENT_INSTRUMENT_ID = "payment_instrument_id"

internal data class InstrumentTokenRequest(
Expand Down Expand Up @@ -65,6 +66,8 @@ internal data class InstrumentTokenRequest(
PAYMENT_INSTRUMENT_ID to instrumentBankCard.paymentInstrumentId
).let { payload ->
csc?.let { payload.plus(CSC to csc) } ?: payload
}.let { payload ->
confirmation.toJsonObject()?.let { payload + (CONFIRMATION to it) } ?: payload
}
}

Expand Down

0 comments on commit cc7be18

Please sign in to comment.