-
I'm having trouble with card validation, and I think it's possibly a bug, but correct me if I'm wrong. I'm using the following code to check the validity of every secure field: secureFieldElement.on("validityChange", (data) => {
const { field, errorMessages } = data;
console.log(`${field}:errorMessages:`, errorMessages);
if (errorMessages[0]) {
console.log(`there is an error with ${field}`);
// ...
// do something with the error
} else {
console.log("no errors presented");
// do something else
}
}); (I found that code somewhere in the docs, not sure where) So when I use the test card number available in the documentation, say If I delete the last digit -- now having only 7 digits in the input field -- I receive the following error message object:
If I retype the deleted message, this error object repeats. So my question is, why is this not the expected behavior from the beginning? Here is a sequence of the events described: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
To endorse this, if we type |
Beta Was this translation helpful? Give feedback.
-
Hello @ihojmanb! We apologize for the delay and for the inconvenience it may have caused to your workflow. Let's clarify some points:
I was performing some testes, and I've noticed the behavior I've described isn't always happening, therefore, an internal bug ticket as created to polish this behavior. I would like to thank you for reporting this and I promise I will handle it with care. Thank you. |
Beta Was this translation helpful? Give feedback.
Hello @ihojmanb!
We apologize for the delay and for the inconvenience it may have caused to your workflow. Let's clarify some points:
I was performing some testes, and I've noticed the behavior I've described isn't always happening, therefore, an internal bug ticket as created to polish this behavior. I would like to thank you for reporting this and I promise I will handle it with care.
T…