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

fix: Make CardField postal code behavior consistent on iOS and Android #989

Conversation

charliecruzan-stripe
Copy link
Collaborator

Summary & Motivation

previously, the complete field in the onCardChange callback would incorrectly be set to true if the postal code wasn't filled out on Android (not ios). This fixes that, and also implements the same behavior as ios- if the user's current device locale is a country/region without postal codes, the postal code entry isn't shown or required.

Users can also override the country code by passing the countryCode prop

Testing

  • I tested this manually
  • I added automated tests

Documentation

Select one:

  • I have added relevant documentation for my changes.
  • This PR does not result in any developer-facing changes.

@charliecruzan-stripe charliecruzan-stripe marked this pull request as ready for review June 13, 2022 21:01
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

Successfully merging this pull request may close these issues.

2 participants