-
Notifications
You must be signed in to change notification settings - Fork 703
Open
Labels
Description
Summary
We want to force dark mode colors, so following the suggestion in the docs i just do:
paymentSheet.presentWithPaymentIntent(
state.paymentIntent.paymentIntentSecret,
PaymentSheet.Configuration.Builder(merchantDisplayName = merchantName)
.appearance(PaymentSheet.Appearance(colorsDark = PaymentSheet.Colors.defaultDark))
.customer(customerConfig)
.allowsDelayedPaymentMethods(false)
.build()
)
Now, that seems to work fine but at some point the UI displays a very weird transition from the loading 'purchasing' button to a full white button. Am I doing the correct thing to force a dark theme always? This white button state seems to also appear if the phone is in dark mode. In light mode this is not noticeable as the button turns white as well, blending into the background.
SDK version: 22.2.0