Giter VIP home page Giter VIP logo

Comments (5)

PawelDecowski avatar PawelDecowski commented on July 30, 2024

My quick guess is it’s because you’re only checking luhn_valid:

if (result.luhn_valid == true) {
    $('#payfort_fort_card_number').addClass('valid');

You’re not checking if the length is valid:

(you don’t need to compare booleans to true so I removed the == true)

if (result.luhn_valid && result.length_valid) {

There’s a shortcut to check both at once:

if (result.valid) {

from jquery-creditcardvalidator.

oscarhandsome avatar oscarhandsome commented on July 30, 2024

Thank you @PawelDecowski for so fast answer, will try to test with it

from jquery-creditcardvalidator.

oscarhandsome avatar oscarhandsome commented on July 30, 2024

@PawelDecowski
I tried your recommendations, both but if delete last 4 digits this all okay
image
but if I deleted 2 last digits this is valid :)
image

i have no idea why it happens...

if i add 2 wrong last digit
image

on the main page jquerycreditcardvalidator.com my card is validating right, and if remove last digit or change on wrong.

from jquery-creditcardvalidator.

PawelDecowski avatar PawelDecowski commented on July 30, 2024

from jquery-creditcardvalidator.

oscarhandsome avatar oscarhandsome commented on July 30, 2024

will check....

@PawelDecowski This validator can work with payfort_fort ?
I just now, understand that your developed script also there.... awesome!

anyway i have weird bug https://prnt.sc/l9smn2

from jquery-creditcardvalidator.

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.