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

Default CardMultilineWidget to global postal code configuration #2279

Merged
merged 1 commit into from
Mar 10, 2020

Conversation

mshafrir-stripe
Copy link
Collaborator

Summary

To require a US zip code via code:

cardMultilineWidget.usZipCodeRequired = true

To require a US zip code 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 #2129

Summary
To require a US zip code via code:
```
cardMultilineWidget.usZipCodeRequired = true
```

To require a US zip code 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 #2129
@mshafrir-stripe mshafrir-stripe merged commit ace6ab1 into master Mar 10, 2020
@mshafrir-stripe mshafrir-stripe deleted the cmw-global-default branch March 10, 2020 20:40
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.

CardMultilineWidget PostalCode hint
3 participants