From 7844d5bd15ba0bf763ee2d45a2717470284cf212 Mon Sep 17 00:00:00 2001
From: Chintan Soni <114917119+chintan-soni-cko@users.noreply.github.com>
Date: Fri, 9 Oct 2026 16:37:33 +0100
Subject: [PATCH] Bump checkoutAndroidComponents to 2.9.0
* Update `checkoutAndroidComponents` version to 2.9.0 in `libs.versions.toml`
* Add `Ideal` and `Knet` payment methods
* Add `NL` to `BillingCountryList`
* Move currency dropdown inside payment session setup in `SettingsScreen.kt`
* Update billing country label text in `strings.xml`
---
.../android/components/sample/ui/SettingsScreen.kt | 12 ++++++------
.../android/components/sample/ui/model/Constants.kt | 2 +-
.../components/sample/ui/model/PaymentMethods.kt | 4 ++++
sample/app/src/main/res/values/strings.xml | 2 +-
sample/gradle/libs.versions.toml | 2 +-
5 files changed, 13 insertions(+), 9 deletions(-)
diff --git a/sample/app/src/main/java/com/checkout/android/components/sample/ui/SettingsScreen.kt b/sample/app/src/main/java/com/checkout/android/components/sample/ui/SettingsScreen.kt
index dfd399e..df36723 100644
--- a/sample/app/src/main/java/com/checkout/android/components/sample/ui/SettingsScreen.kt
+++ b/sample/app/src/main/java/com/checkout/android/components/sample/ui/SettingsScreen.kt
@@ -182,12 +182,6 @@ fun BasicSettingsContent(
settings.psLocale,
) { localeSelection -> onUpdated(settings.copy(psLocale = localeSelection)) }
- StatefulDropdownRow(
- stringResource(R.string.label_currency),
- CurrencyList,
- settings.psCurrency,
- ) { currency -> onUpdated(settings.copy(psCurrency = currency)) }
-
PaymentSessionSetupContent(
settings = settings,
onUpdated = onUpdated,
@@ -212,6 +206,12 @@ fun PaymentSessionSetupContent(
) {
val latestSettings = rememberUpdatedState(settings)
+ StatefulDropdownRow(
+ stringResource(R.string.label_currency),
+ CurrencyList,
+ settings.psCurrency,
+ ) { currency -> onUpdated(latestSettings.value.copy(psCurrency = currency)) }
+
StatefulDropdownRow(
stringResource(R.string.label_billing_country),
BillingCountryList,
diff --git a/sample/app/src/main/java/com/checkout/android/components/sample/ui/model/Constants.kt b/sample/app/src/main/java/com/checkout/android/components/sample/ui/model/Constants.kt
index c8d96d2..0e4244e 100644
--- a/sample/app/src/main/java/com/checkout/android/components/sample/ui/model/Constants.kt
+++ b/sample/app/src/main/java/com/checkout/android/components/sample/ui/model/Constants.kt
@@ -15,7 +15,7 @@ val RegionPresetList = RegionPreset.entries.toList()
val CurrencyList = listOf("GBP", "USD", "EUR", "SAR", "AED", "KWD", "SGD")
-val BillingCountryList = listOf("GB", "US", "DE", "SA", "AE", "KW", "SG")
+val BillingCountryList = listOf("GB", "US", "DE", "SA", "AE", "KW", "SG", "NL")
val EnvironmentList = Environment.entries.toList()
diff --git a/sample/app/src/main/java/com/checkout/android/components/sample/ui/model/PaymentMethods.kt b/sample/app/src/main/java/com/checkout/android/components/sample/ui/model/PaymentMethods.kt
index 6374987..e05b394 100644
--- a/sample/app/src/main/java/com/checkout/android/components/sample/ui/model/PaymentMethods.kt
+++ b/sample/app/src/main/java/com/checkout/android/components/sample/ui/model/PaymentMethods.kt
@@ -7,10 +7,14 @@ package com.checkout.android.components.sample.ui.model
* @property GooglePay Mobile payments through the Google Pay digital wallet.
* @property Tabby Buy-now-pay-later APM via redirect flow.
* @property Tamara Buy-now-pay-later APM via redirect flow.
+ * @property Ideal iDEAL redirect APM. Requires an EUR + NL payment session to be offered.
+ * @property Knet KNET redirect APM. Requires a KWD + KW payment session to be offered.
*/
enum class PaymentMethods {
Card,
GooglePay,
Tabby,
Tamara,
+ Ideal,
+ Knet,
}
diff --git a/sample/app/src/main/res/values/strings.xml b/sample/app/src/main/res/values/strings.xml
index 945502a..2811e69 100644
--- a/sample/app/src/main/res/values/strings.xml
+++ b/sample/app/src/main/res/values/strings.xml
@@ -21,7 +21,7 @@
PS Locale:
Region Preset:
Currency:
- Address Country:
+ Country:
Customer Email:
Customer Phone Number:
Payment Session Setup
diff --git a/sample/gradle/libs.versions.toml b/sample/gradle/libs.versions.toml
index 1da6e1d..9a09f87 100644
--- a/sample/gradle/libs.versions.toml
+++ b/sample/gradle/libs.versions.toml
@@ -18,7 +18,7 @@ ksp = "2.3.4"
coroutinesCore = "1.10.2"
kotlinSerialization = "1.10.0"
-checkoutAndroidComponents = "2.8.0"
+checkoutAndroidComponents = "2.9.0"
appcompat = "1.7.1"
material = "1.13.0"