Skip to content

temnosvit/cards_validator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cards validator

Description

Cards validator verifies credit cards by validating its number, month and year. Number is validated with Luhn method and IIN(Issuer identification number).

To run app in docker

docker-compose up

Json example

{
    "data": {
        "attributes": {
            "cardnumber": "4098939612891",
            "month": "9",
            "year": "2024"
        }
    }
}

Response example

{
    "data": {
        "id": "1",
        "type": "validate-card-response",
        "attributes": {
            "valid": true
        }
    },
    "included": []
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published