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

Correctly validate country field on shipping address form #1845

Merged
merged 2 commits into from
Nov 20, 2019

Conversation

mshafrir-stripe
Copy link
Collaborator

Summary

  • Validation was being incorrectly skipped in
    PaymentFlowActivity. Use
    ShippingInfoWidget#shippingInformation instead
    of rawShippingInformation.
  • Implement a AutoCompleteTextView.Validator in
    CountryAutoCompleteTextView and show an error
    message if the text is an invalid country.
  • When a user submits their shipping information in
    PaymentFlowActivity, perform validation using
    the AutoCompleteTextView.Validator.
  • Add string resource address_country_invalid.
    Create JIRA for translation.

Motivation

ANDROID-451

shipping_validation

- Validation was being incorrectly skipped in
  `PaymentFlowActivity`. Use
  `ShippingInfoWidget#shippingInformation` instead
  of `rawShippingInformation`.
- Implement a `AutoCompleteTextView.Validator` in
  `CountryAutoCompleteTextView` and show an error
  message if the text is an invalid country.
- When a user submits their shipping information in
  `PaymentFlowActivity`, perform validation using
  the `AutoCompleteTextView.Validator`.
- Add string resource `address_country_invalid`.
  Create JIRA for translation.

ANDROID-451
@mshafrir-stripe mshafrir-stripe merged commit 4b1e482 into master Nov 20, 2019
@mshafrir-stripe mshafrir-stripe deleted the country-validator branch November 20, 2019 21:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants