-
Notifications
You must be signed in to change notification settings - Fork 70
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
There is no way to set MM/YY
format for CardExpirationDate
#44
Comments
The same problem with So I tried to change test case:
And it fails :–(. This |
I found the source of my problems: there is incorrect format. The right one is I can fix readme. But what to do with |
I just ran into this issue because I wanted to use the 'm/Y' format. The Carbon::parse() doesn't do anything helpful. I ended up having to abandon this validation for regex/date_format/after validations. I think that line was added because it blocks a string like '3/22' without a leading zero because there is no way to enforce checking for the leading 0 with the date parsing in PHP. The only way I can thing to fix that is by doing a string comparison of the string to be parsed to the result formatted back. Unfortunately, then formats that you want to have match leading 0 not required but allowed wouldn't be reliable. |
I'm trying to do like this:
When the lib tun
passes()
method it runs inside and throw an Exception:There are no ways to disable this parsing or etc.
What do you think about this bug/feature? :–)
The text was updated successfully, but these errors were encountered: