stripe / stripe-android

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

[BUG] Postcode field entry issues when using SwiftKey keyboard #8586

Open jvanderwee opened 3 months ago

jvanderwee commented 3 months ago

Summary

Postcode field entry does not work as expected when using SwiftKey keyboard - some characters are entered correctly, others are not.

Android version

12+

Impacted devices

Android Pixel 7a Huawei P30

Installation method

Gradle

Dependency Versions

kotlin: 2.0.0 stripe-android: 20.44.2 Android Gradle Plugin: 8.4.1 Gradle: 8.6

SDK classes

PaymentSheet

Video

https://github.com/stripe/stripe-android/assets/3587922/1489a2fd-d976-41fe-8ab2-cabc7ac1ef69

Other information

byudaniel commented 2 months ago

I'm seeing the same issue with SwiftKey and the CustomerSheet with Stripe React Native 0.38.1 (Stripe Android v20.47.3, tested on Samsung S22 Ultra, Android 14.)

jcweber10 commented 2 months ago

I have the same issue with SwiftKey and the AddressElementActivity (via rememberAddressLauncher). I'm happy to make a new issue, but here are my dependencies. com.stripe:stripe-android:20.48.0 kotlin 1.9.20 Android 13 AGP 8.2.2 Gradle 8.2

taonga-chabva-dootrix commented 1 month ago

We are also receiving customer reports of not being able to enter their UK postcode when adding a card via the CustomerSheet. It seems to be happening to users on various keyboards including the default Gboard but we have only been able to replicate the issue using the Microsoft SwiftKey keyboard, on the CustomerSheet with the postcode text field specifically.

With Microsoft SwiftKey behaviours we have seen are when typing a postcode are:

Both of these were observed on a physical Google Pixel 4a 5g device and a Google Pixel 8 pro emulator. On the physica Google Pixel 4a 5g there was also some flashing of the autofill sections of Microsoft SwiftKey that we were not able to replicate on other text input fields in our or other apps.

Our dependencies are: com.stripe:stripe-android:20.48.1 kotlin 1.9.24 Android 14 AGP 8.5.1 Gradle 8.7