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

Add onLoadError to card and cardNumber elements #488

Merged
merged 2 commits into from
Apr 4, 2024

Conversation

martinalong-stripe
Copy link
Contributor

Summary & motivation

Users will now be able to use onLoadError on the card and cardNumber elements:

cardElement.onLoadError((e) => console.log(e));

cardNumberElement.onLoadError((e) => console.log(e));

API review

https://docs.google.com/document/d/1ZoI--5Uuiy9j_FfEJauL9i_X5vf7miEsHIOp-2JS0eY/edit

Testing & documentation

I wrote unit tests

Will update the documentation when we release the feature

@martinalong-stripe martinalong-stripe merged commit fb65a58 into master Apr 4, 2024
2 checks passed
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