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

types: CVC should not be a number #105

Open
jezzzm opened this issue May 2, 2023 · 3 comments
Open

types: CVC should not be a number #105

jezzzm opened this issue May 2, 2023 · 3 comments

Comments

@jezzzm
Copy link

jezzzm commented May 2, 2023

needs to allow strings that begin with zero.

e.g. passing to card.createToken:

currently, by coercing the string "089" to a number in order to appease Swell types, 89 is passed to the validation function and therefore fails as it is only 2 digits.

@ericingram
Copy link
Contributor

Good point cc @greph

@greph
Copy link
Contributor

greph commented May 2, 2023 via email

@awwit
Copy link
Contributor

awwit commented Apr 26, 2024

@jezzzm this should be fixed in v4.1.0.

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

No branches or pull requests

4 participants