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

Issue/1121 #1127

Merged
merged 2 commits into from
Oct 17, 2016
Merged

Issue/1121 #1127

merged 2 commits into from
Oct 17, 2016

Conversation

kevinwhoffman
Copy link
Contributor

Description

The issue described in #1121 was only a problem if a new card number was pasted over existing input. If the user deleted the number and then entered a new number, there was no issue.

By clearing all credit card classes before each update, we ensure that class names do not stack on top of each other and there is only one credit card class applied at a time.

How Has This Been Tested?

  • Entered all card types from https://stripe.com/docs/testing#cards
  • Hand-keyed and copy/pasted numbers
  • Confirmed card icon appears when field is populated and disappears when empty
  • Tested SCRIPT_DEBUG set to true and false

Types of changes

Fixes #1121

Checklist:

  • My code is tested.
  • My code follows the WordPress code style.
  • My code follows has proper inline documentation.

Copy link
Member

@DevinWalker DevinWalker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you show me the line specifically that you changed to make it work?

@kevinwhoffman
Copy link
Contributor Author

@DevinWalker See commit 1d73e01. It's the only line changed. The rest is minification.

@DevinWalker
Copy link
Member

Looks good, thanks.

@DevinWalker DevinWalker merged commit 8392089 into impress-org:release/1.7 Oct 17, 2016
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.

None yet

2 participants