Release 1.3.0
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
group 'ru.yoomoney.sdk.kassa.payments.flutter'
|
||||
|
||||
buildscript {
|
||||
ext.kotlin_version = '1.7.10'
|
||||
ext.kotlin_version = '1.8.22'
|
||||
repositories {
|
||||
google()
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:7.3.0'
|
||||
classpath 'com.android.tools.build:gradle:7.4.1'
|
||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
||||
}
|
||||
}
|
||||
@@ -52,5 +52,9 @@ android {
|
||||
|
||||
dependencies {
|
||||
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
||||
implementation 'ru.yoomoney.sdk.kassa.payments:yookassa-android-sdk:6.7.1'
|
||||
implementation 'ru.yoomoney.sdk.kassa.payments:yookassa-android-sdk:6.9.2'
|
||||
}
|
||||
|
||||
configurations.implementation {
|
||||
exclude group: 'org.jetbrains.kotlin', module: 'kotlin-stdlib-jdk8'
|
||||
}
|
||||
|
||||
+1
-1
@@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
|
||||
|
||||
+6
-4
@@ -79,13 +79,15 @@ class YookassaPaymentsFlutterPlugin: FlutterPlugin, MethodCallHandler, ActivityA
|
||||
}
|
||||
|
||||
val url = data["url"] as String
|
||||
val clientApplicationKey = data["clientApplicationKey"] as String?
|
||||
val clientApplicationKey = data["clientApplicationKey"] as String
|
||||
val shopId = data["shopId"] as String
|
||||
|
||||
val intent: Intent = Checkout.createConfirmationIntent(
|
||||
context = context,
|
||||
confirmationUrl = url,
|
||||
clientApplicationKey = clientApplicationKey,
|
||||
paymentMethodType = paymentMethod
|
||||
paymentMethodType = paymentMethod,
|
||||
shopId = shopId
|
||||
)
|
||||
|
||||
activity.startActivityForResult(intent, REQUEST_CODE_CONFIRMATION)
|
||||
@@ -173,7 +175,7 @@ class YookassaPaymentsFlutterPlugin: FlutterPlugin, MethodCallHandler, ActivityA
|
||||
|
||||
private fun PaymentParameters(data: Map<String, Object>): PaymentParameters {
|
||||
val amountMap: HashMap<String, Object> = data["amount"] as HashMap<String, Object>
|
||||
val amount = Amount(BigDecimal(amountMap["value"] as Double), Currency.getInstance(amountMap["currency"] as String))
|
||||
val amount = Amount(BigDecimal(amountMap["value"] as String), Currency.getInstance(amountMap["currency"] as String))
|
||||
|
||||
val clientApplicationKey = data["clientApplicationKey"] as String
|
||||
val title = data["title"] as String
|
||||
@@ -242,7 +244,7 @@ private fun GooglePayParameters(data: Map<String, Object>): GooglePayParameters
|
||||
|
||||
private fun SavedBankCardPaymentParameters(data: Map<String, Object>): SavedBankCardPaymentParameters {
|
||||
val amountMap: HashMap<String, Object> = data["amount"] as HashMap<String, Object>
|
||||
val amount = Amount(BigDecimal(amountMap["value"] as Double), Currency.getInstance(amountMap["currency"] as String))
|
||||
val amount = Amount(BigDecimal(amountMap["value"] as String), Currency.getInstance(amountMap["currency"] as String))
|
||||
val title = data["title"] as String
|
||||
val subtitle = data["subtitle"] as String
|
||||
val clientApplicationKey = data["clientApplicationKey"] as String
|
||||
|
||||
Reference in New Issue
Block a user