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: Publishes change event from CardVerificationCodeElement on brand changes #30

Merged
merged 3 commits into from
Jan 5, 2023

Conversation

dhudec
Copy link
Contributor

@dhudec dhudec commented Jan 5, 2023

Description

When the card number is changed resulting in a card brand change with a different mask length, we now emit an additional event from the the CVC element with updated validation/completion states.

Testing required outside of automated testing?

  • Not Applicable

Screenshots (if appropriate):

  • Not Applicable

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 requested a review from a team as a code owner January 5, 2023 20:25
// change the card brand from visa to american-express
cardNumberElement.setText("4242424242424242")

expectThat(cvcElement.getText()).isEqualTo("1234") // value does not change
Copy link
Contributor

Choose a reason for hiding this comment

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

so it is their problem to make sure it is not tokenized like this since the element still have 4 digits right?

@dhudec dhudec merged commit 6e8072a into master Jan 5, 2023
@dhudec dhudec deleted the eng-4042 branch January 5, 2023 21:55
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