Coder Social home page Coder Social logo

thai-smartcard-reader's Introduction

thai-smartcard-reader

For read thai citizen smartcard only

  • Must install "webcard" plugin
  • You need to "Smartcard reader"

Support

  • Safari 11
  • IE 9+
  • Firefox 51 (Not support newer version)
  • Chrome 44 (Not support newer version)

Getting Started

Install dependencies

  1. install package
npm install --save thai-smartcard-reader
  1. Download and install webcard plugin Mac and Windows ref: https://github.com/cardid/WebCard

Include component

import ThaiSmartcardReader from 'thai-smartcard-reader'

Example

<ThaiSmartcardReader onChange={(data) => console.log(data)} />

Example response data

{
  "citizenId": "1234567890123",
  "titleTH": "นาย",
  "firstnameTH": "ใจดี",
  "lastnameTH": "ดีใจ",
  "titleEN": "Mr.",
  "firstnameEN": "Jaidee",
  "lastnameEN": "Deejai",
  "birthday": "25600131",
  "gender": "1",
  "address": [
    "30/1",
    "หมู่ที่",
    "12",
    "ตำบลท้ายเมือง",
    "อำเภอท้ายบ้าน",
    "จังหวัดกระบี่กระบอง"
  ],
  "issueAll": "25570117",
  "expire": "25651231"
}

thai-smartcard-reader's People

Contributors

doctoraod avatar dependabot[bot] avatar

Stargazers

sirasak saengaurai avatar  avatar Keerati Intarurk avatar Minkbear avatar Jane Siraswaya avatar Piphop Boonchuay avatar Sopanat Suradach avatar  avatar Wiwat Fongkan avatar radtiew.dev avatar Oat Phattaraphon avatar Leenawat Papahom avatar Chun-Sheng, Li avatar usman kareemee avatar  avatar Tanakrit Saisillapee avatar Sarut Yentakham avatar Sathit Seethaphon avatar Withun Porawiwat avatar cyppst avatar Nantaphop avatar  avatar

Watchers

James Cloos avatar mr.Pornchai khamperngjai avatar  avatar Thanawat Chookes avatar KRITTANAI B. avatar

thai-smartcard-reader's Issues

Refactoring code

จัดระเบียบพวก function ให้ดูอ่านง่าย ใช้งานง่ายขึ้น

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.