Skip to content

[BUG] Payment button turns blank during purchase process #12155

@mariusmorabosch

Description

@mariusmorabosch

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.

Image

SDK version: 22.2.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions