Skip to content

Commit

Permalink
Enable Customer Session by default in playground (#10138)
Browse files Browse the repository at this point in the history
  • Loading branch information
samer-stripe authored Feb 12, 2025
1 parent 55f0415 commit f822799
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import com.stripe.android.paymentsheet.example.playground.settings.Country
import com.stripe.android.paymentsheet.example.playground.settings.CountrySettingsDefinition
import com.stripe.android.paymentsheet.example.playground.settings.Currency
import com.stripe.android.paymentsheet.example.playground.settings.CurrencySettingsDefinition
import com.stripe.android.paymentsheet.example.playground.settings.CustomerSessionSettingsDefinition
import com.stripe.android.paymentsheet.example.playground.settings.CustomerSettingsDefinition
import com.stripe.android.paymentsheet.example.playground.settings.CustomerType
import com.stripe.android.paymentsheet.example.playground.settings.DefaultShippingAddressSettingsDefinition
Expand Down Expand Up @@ -61,6 +62,7 @@ internal data class TestParameters(
private fun playgroundSettings(block: (PlaygroundSettings) -> Unit = {}): PlaygroundSettings {
val settings = PlaygroundSettings.createFromDefaults()
settings[CustomerSettingsDefinition] = CustomerType.NEW
settings[CustomerSessionSettingsDefinition] = false
settings[LinkSettingsDefinition] = false
settings[CountrySettingsDefinition] = Country.GB
settings[CurrencySettingsDefinition] = Currency.EUR
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import com.stripe.android.paymentsheet.example.playground.model.CheckoutRequest
import com.stripe.android.paymentsheet.example.playground.model.CustomerEphemeralKeyRequest

internal object CustomerSessionSettingsDefinition : BooleanSettingsDefinition(
defaultValue = false,
defaultValue = true,
displayName = "Use Customer Session",
key = "customer_session_enabled"
) {
Expand Down

0 comments on commit f822799

Please sign in to comment.