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

Add ability to require ZIP code in CardInputWidget and CardMultilineWidget #2278

Merged
merged 1 commit into from
Mar 10, 2020

Conversation

mshafrir-stripe
Copy link
Collaborator

Summary

Enable via code:

cardMultilineWidget.usZipCodeRequired = true

Enable via XML layout:

<com.stripe.android.view.CardMultilineWidget
    android:id="@+id/card_multiline_widget"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    app:shouldRequireUsZipCode="true"/>

Motivation

Fixes #2273

Testing

Added tests and manually verified

…idget

Summary
Enable via code:
```
cardMultilineWidget.usZipCodeRequired = true
```

Enable via XML layout:
```
<com.stripe.android.view.CardMultilineWidget
    android:id="@+id/card_multiline_widget"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    app:shouldRequireUsZipCode="true"/>
```

Motivation
Fixes #2273

Testing
Added tests and manually verified
@mshafrir-stripe mshafrir-stripe merged commit cbfc611 into master Mar 10, 2020
@mshafrir-stripe mshafrir-stripe deleted the require-us-zipcode branch March 10, 2020 19:12
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.

Add validation/inputType option to zip code field
4 participants