Mangopay / cardregistration-js-kit

Mangopay V2 JS resources for card registration front-end workflow
MIT License
38 stars 34 forks source link

Expiry date format is always wrong? #41

Closed Doko-Demo-Doa closed 7 years ago

Doko-Demo-Doa commented 7 years ago

As far as I know, we had to use Unix epoch timestamp when creating card registration call. But I always get error 105203 when trying to do so.

var cardData = {
  cardNumber: '4706750000000009',
  cardExpirationDate: '1595293261', // For 2020
  cardCvx: '343',
  cardType: 'Visa',
};

Any idea?

hobailey commented 7 years ago

The expiry date date here is not epoch but MMYY infact :-)