stripe / stripe-android

Stripe Android SDK
https://stripe.com/docs/mobile/android
MIT License
1.27k stars 644 forks source link

[BUG] PaymentSheet Set up Button visually locked when fill all inputs #9444

Open aitorcooltra opened 4 days ago

aitorcooltra commented 4 days ago

Summary

When you fill all inputs in the Payment Sheet, the "set up" button keeps locked visually. You can tap on the button and it works fine, but this is confused for the user.

Code to reproduce

Here a screenshot: paysheetlocked

Android version

Android 13

kotlin: 2.0.0 stripe-android: 20.47.0 Android Gradle Plugin: 8.5.1 Gradle: 8.7-bin

SDK classes

PaymentSheet.kt

porter-stripe commented 4 days ago

Hi @aitorcooltra we are unable to reproduce this. Could you share the code you use to configure PaymentSheet, especially the appearance?

aitorcooltra commented 3 days ago

I do not know if this is useful for you, but the appearance is:

 private val paymentSheetAppearance = PaymentSheet.Appearance(
    colorsLight = paymentSheetThemeColors,
    colorsDark = paymentSheetThemeColors
)

 private val paymentSheetThemeColors by lazy {

    PaymentSheet.Colors.defaultLight
        .copy(
            primary = ContextCompat
                .getColor(context, R.color.color_primary)
        )
}