Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How does Credit Card autofill actually work? #60

Open
misael-jonathan opened this issue Nov 6, 2023 · 0 comments
Open

How does Credit Card autofill actually work? #60

misael-jonathan opened this issue Nov 6, 2023 · 0 comments

Comments

@misael-jonathan
Copy link

Hi, I am currently trying to use credit card autofill in my Credit Cart Bill Payment page. In my case, I only need the credit card number. So in my first poc, I use a single field with autofillHints attr set with AUTOFILL_HINT_CREDIT_CARD_NUMBER. But the autofill recommendation on the keyboard didn't show at all.

After some checking, seems like a single field is not sufficient. I also need another view present in the layout, that is a view with autofillHints attr set with AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DATE or portions of the expiration date, and they have to be visible (width/height != 0, visibility == visible). Idk why, did some experiment and seems so.

But I don't need the expiration date at all. What I can do right now is by setting the height and width to 0,01dp, so the field doesn't appear to the users.

My question is, do I really need expire date field to be able to use the autofill feature? or can I achieve that with only a single field (creditCardNumber)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant