Adyen / adyen-cse-web

[DEPRECATED] Client-side encryption on JavaScript
MIT License
15 stars 39 forks source link

Passing 2 digits year should be valid #67

Closed lauterry closed 5 years ago

lauterry commented 6 years ago

Hello

Most of the credit card in France displays 2 digits for the expiration year. (18 for 2018)

That's why my form allows to enter 2-digits year instead of 4-digits.

However, passing 2 digits year to the validate function seems to be invalid.

I expect a 2 digits year to passed as well as a 4 digits year.

What's your thoughts ?

Best regards

pasfranc-dodax commented 6 years ago

We have same issue here in Switzerland. No way to make it work with 2 digits for year.

I tried to make an hidden input for year, appending "20" to the value of year input on submit, but it does not work, it seems the form it is encrypted before the submit.

Is there any way to achieve this?