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

feat: Adds CardNumberElement and validator property to TextElement #10

Merged
merged 4 commits into from
Dec 2, 2022

Conversation

dhudec
Copy link
Contributor

@dhudec dhudec commented Dec 1, 2022

Description

  • Adds CardNumberElement

Testing required outside of automated testing?

  • Not Applicable

Screenshots (if appropriate):

image

Rollback / Rollforward Procedure

  • Roll Forward
  • Roll Back

Reviewer Checklist

  • Description of Change
  • Description of outside testing if applicable.
  • Description of Roll Forward / Backward Procedure
  • Documentation updated for Change

@dhudec dhudec marked this pull request as ready for review December 2, 2022 21:02
@dhudec dhudec requested a review from a team as a code owner December 2, 2022 21:02
Comment on lines +65 to +73
cardNumberElement.addChangeEventListener {
if (!it.isValid && it.isComplete) {
cardNumberElement.textColor = Color.RED
tokenizeButton.isEnabled = false
} else {
cardNumberElement.textColor = Color.BLACK
tokenizeButton.isEnabled = true
}
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I almost deleted this, but I left it for now thinking we can move it into another activity later to demo validation

@dhudec dhudec merged commit 968e782 into master Dec 2, 2022
@dhudec dhudec deleted the eng-3892 branch December 2, 2022 21:58
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.

2 participants