card-reader-widget
v1.0.18
Published
card reader widget
Downloads
4
Readme
Card reader widget (CRW)
CRW is a react library for capture the credit card images.
Installation
If you are using npm,
npm install card-reader-widget
For yarn,
yarn add card-reader-widget
Usage
//App.js
import React from 'react';
import CardReader from 'card-reader-widget'
import './App.css';
function App() {
const onDone = (response) => {
console.log('response', response);
}
return (
<div>
<CardReader logger={console.log} onDone={onDone} />
</div>
);
};
export default App;
Add this in your App.css
@import '~card-reader-widget/src/App.css';
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.