-
Notifications
You must be signed in to change notification settings - Fork 134
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
Provide reason why the field is invalid #692
Comments
👋 Thanks for reaching out, this sounds like a solid feature request that we should vet. I'm going to forward this on to the appropriate folks to evaluate. |
window.paypal
}) // Example function to show a result to the user. Your site's UI library can be used instead. |
General information
Issue description
We would like to have the reason why the expiration date is not valid in the
hostedFieldsInstance.on('validityChange')
callback to display an appropriate error message for the user.
So far, the SDK only indicates if the field is valid or not, but for the expiration date it's invalid if
Therefore we would like to display something like
The text was updated successfully, but these errors were encountered: