Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Comment thread
chintan-soni-cko marked this conversation as resolved.
Resolved
* @property Knet KNET redirect APM. Requires a KWD + KW payment session to be offered.
*/
enum class PaymentMethods {
Card,
GooglePay,
Tabby,
Tamara,
Ideal,
Knet,
Comment thread
chintan-soni-cko marked this conversation as resolved.
Resolved
}
2 changes: 1 addition & 1 deletion sample/app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<string name="label_ps_locale">PS Locale:</string>
<string name="label_region_preset">Region Preset:</string>
<string name="label_currency">Currency:</string>
<string name="label_billing_country">Address Country:</string>
<string name="label_billing_country">Country:</string>
<string name="label_session_email">Customer Email:</string>
<string name="label_session_phone_number">Customer Phone Number:</string>
<string name="label_payment_session_setup">Payment Session Setup</string>
Expand Down
2 changes: 1 addition & 1 deletion sample/gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
Loading