Skip to content
Snippets Groups Projects
Commit 70fb8745 authored by imanie383's avatar imanie383
Browse files

[FIX] payment: force CardExpiry year to 2 digits

parent 816ba6f5
No related branches found
No related tags found
No related merge requests found
......@@ -637,6 +637,9 @@
year = parts[3] || '';
if (year.length > 0) {
sep = ' / ';
// Force year to 2 digits
if (year.length === 4 )
year = year.substr(-2);
} else if (sep === ' /') {
mon = mon.substring(0, 1);
sep = '';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment