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

Update 14-digit Diners Club formatting #2221

Merged
merged 1 commit into from
Feb 26, 2020
Merged

Conversation

mshafrir-stripe
Copy link
Collaborator

@mshafrir-stripe mshafrir-stripe commented Feb 24, 2020

Summary

  • Move card number grouping and formatting logic to CardBrand
  • Programmatically generate CardInputWidget#hiddenCardText and update
    it whenever the CardBrand changes

Motivation

14-digit Diners club formatting should be XXXX XXXXXX XXXX. Update
formatting logic accordingly.

Testing

Add unit tests
Manually verify

dci

Summary
- Move card number grouping and formating logic to `CardBrand`
- Programatically generate `CardInputWidget#hiddenCardText` and update
  it whenever the `CardBrand` changes

Motivation
14-digit Diners club formatting should be `XXXX XXXXXX XXXX`. Update
formatting logic accordingly.

Testing
Add unit tests
Manually verify
@mshafrir-stripe mshafrir-stripe merged commit 5cbb87c into master Feb 26, 2020
@mshafrir-stripe mshafrir-stripe deleted the dinersclub-14-spacing branch February 26, 2020 16:26
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.

None yet

4 participants