Giter VIP home page Giter VIP logo

Comments (2)

sponglord avatar sponglord commented on June 19, 2024

Hi emidev98,
This is, in fact, correct behaviour. The credit card issuer's state that a credit card that is out of date can still be valid as long as it is not too far out of date.
In checkout we check that the expiry date isn't more than 30 years in the future (15 years prior to release v3.8.1) and isn't more than 3 months in the past. This is the short answer.
The long answer is that the expiry date can actually be 3, to almost 4, months in the past:

  • For the past we look at full months, disregarding the current, incomplete month.
    So if, for example, the date is March 29: the month is not yet over - so we count 3 months from, and including, the previous full month. So February, January & December 2019.
    This means that on March 29, 2020 you could type an expiry date of 12/19 and it would be considered valid. This is almost 4 months in the past.
    By April 1, 2020 however when we count 3 full months in the past (March, February, January) then an expiry date of 01/20 will be valid and anything before that won't. This is only 3 months in the past.

from adyen-web.

emidev98 avatar emidev98 commented on June 19, 2024

Thank you very much for the clarifications!

from adyen-web.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.