Skip to content

ken-ton/gopan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gopan

Build Status

GoPAN

Validate and Generate PAN (PrimaryAccountNumber a.k.a CreditCardNumber).

Installation

go get github.com/ken-ton/gopan

Quick Start

import "github.com/ken-ton/gopan"

// Generate
pan := gopan.Generate("AMERICAN EXPRESS") // 378282246310005

// Validate
isValid := gopan.IsValid("4012-8888-8888-1881") // true

// Get Brand or IssuingNetwork
brand := gopan.GetBrand("3566 0020 2036 0505") // JCB

About

Validate and Generate PAN

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages