stripe-android
stripe-android copied to clipboard
[BUG] CardInputWidget does not autofill card's expiry date or CVC depending on the autofill software
Summary
When attempting to autofill credit card details with Google's password manager, all fields are correctly filled except for the CVC. When using a third party one like 1Password, the CVC is filled but the expiry date isn't.
Code to reproduce
The example
project in this repo already reproduces the issue.
Android version
Tried on both Android 10 and Android 14
Impacted devices
Not a device specific issue
Installation method
Reproducible on the example
project.
Dependency Versions
Reproducible on the latest version of this repo, which is v20.48.1
at the time of writing
SDK classes
CardInputWidget
Video
Using Google's password manager: https://github.com/user-attachments/assets/ca4cd2e7-eefb-4d6d-af24-6b7e70ddb0c9 Using 1Password: https://github.com/user-attachments/assets/cf79d443-c28a-40dd-8db2-07e6131799bc
Other information
Because our flow requires us to collect card details at an earlier stage than the payment step, among with other issues, we are currently unable to migrate to PaymentSheet
, which we understand is the most developed UI component at the moment.
We are also planning to use CardInputWidget
inside an AndroidView
to allow it to work in our Jetpack Compose screens. It would be great to hear if there's any alternative or component to achieve this result, or if there's any workaround for the reported issue.